Skip to content

Commit a17a757

Browse files
Peter Van HoyweghenPeter Van Hoyweghen
Peter Van Hoyweghen
authored and
Peter Van Hoyweghen
committed
Configure SPI pins as input when target is not in reset.
1 parent 15da182 commit a17a757

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ void start_pmode() {
274274

275275
void end_pmode() {
276276
SPI.end();
277+
// We're about to take the target out of reset
278+
// so configure SPI pins as input
279+
pinMode(MOSI, INPUT);
280+
pinMode(SCK, INPUT);
277281
reset_target(false);
278282
pinMode(RESET, INPUT);
279283
pmode = 0;

0 commit comments

Comments
 (0)