Skip to content

Commit 5a04ab2

Browse files
Peter Van HoyweghenPeter Van Hoyweghen
authored andcommitted
Don't pulse error led if avrdude enters programming mode twice
1 parent eca360b commit 5a04ab2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,8 @@ int avrisp() {
581581
empty_reply();
582582
break;
583583
case 'P':
584-
if (pmode) {
585-
pulse(LED_ERR, 3);
586-
}
587-
else {
584+
if (!pmode)
588585
start_pmode();
589-
}
590586
empty_reply();
591587
break;
592588
case 'U': // set address (word)

0 commit comments

Comments
 (0)