From 8dfe833e499c05205caf369b22dfcda7f727f2de Mon Sep 17 00:00:00 2001 From: "Randall Bohn (Huckle)" Date: Sat, 18 Feb 2012 09:11:58 -0700 Subject: [PATCH] Set error if GET_SIGN_ON not followed by CRC_EOP --- .../shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index 060ad77ac..6578aa4bf 100644 --- a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -497,6 +497,10 @@ int avrisp() { Serial.print("AVR ISP"); Serial.print((char) STK_OK); } + else { + error++; + Serial.print((char) STK_NOSYNC); + } break; case 'A': get_version(getch()); @@ -574,5 +578,3 @@ int avrisp() { } } - -