         Target.write(Serial.read());
     if (Target.available())
         Serial.write(Target.read());
-}
+    if (digitalRead(START_PIN))  // inverted logicgg
+        RESET();
+}

    Serial.print(" FAILED - got 0x");
    Serial.println(b, HEX);
    digitalWrite(ERROR_PIN, 1);
    while (true) ; // halt
}

static void sendByte (uint8_t b) {

    Serial.print(sizeof data);
    Serial.println(" bytes uploaded.");
    digitalWrite(GREEN_PIN, 1);

    Target.begin(115200, false, false); // disable parity
    resetTarget(false);
