Skip to content

Commit 455f1e2

Browse files
Peter Van Hoyweghen
Peter Van Hoyweghen
authored and
committed
Configure SPI pins as input when target is not in reset.
1 parent 832c5f3 commit 455f1e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/shared/examples/ArduinoISP/ArduinoISP.ino

+4
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ void start_pmode() {
270270

271271
void end_pmode() {
272272
SPI.end();
273+
// We're about to take the target out of reset
274+
// so configure SPI pins as input
275+
pinMode(MOSI, INPUT);
276+
pinMode(SCK, INPUT);
273277
reset_target(false);
274278
pinMode(RESET, INPUT);
275279
pmode = 0;

0 commit comments

Comments
 (0)