File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
build/shared/examples/ArduinoISP Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,10 @@ int avrisp() {
478
478
Serial.print (" AVR ISP" );
479
479
Serial.print ((char ) STK_OK);
480
480
}
481
+ else {
482
+ error++;
483
+ Serial.print ((char ) STK_NOSYNC);
484
+ }
481
485
break ;
482
486
case ' A' :
483
487
get_version (getch ());
@@ -537,14 +541,14 @@ int avrisp() {
537
541
read_signature ();
538
542
break ;
539
543
540
- // expecting a command, not CRC_EOP
541
- // this is how we can get back in sync
544
+ // expecting a command, not CRC_EOP
545
+ // this is how we can get back in sync
542
546
case CRC_EOP:
543
547
error++;
544
548
Serial.print ((char ) STK_NOSYNC);
545
549
break ;
546
550
547
- // anything else we will return STK_UNKNOWN
551
+ // anything else we will return STK_UNKNOWN
548
552
default :
549
553
error++;
550
554
if (CRC_EOP == getch ())
@@ -554,5 +558,3 @@ int avrisp() {
554
558
}
555
559
}
556
560
557
-
558
-
You can’t perform that action at this time.
0 commit comments