     Serial.println(sizeof data);
     Serial.println();
 
+    digitalWrite(ERROR_PIN, 0); pinMode(ERROR_PIN, OUTPUT);
+    digitalWrite(GREEN_PIN, 0); pinMode(GREEN_PIN, OUTPUT);
+    pinMode(START_PIN, INPUT_PULLUP);
+
 if (1) {
     resetTarget(true);
 

    Serial.print("        Done: ");
    Serial.print(sizeof data);
    Serial.println(" bytes uploaded.");
}

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


    uint8_t b = 0;
    do {
        digitalWrite(GREEN_PIN, 1);
        Serial.print(".");
        delay(20);
        Target.write(0x7F);
        digitalWrite(GREEN_PIN, 0);
        b = getReply();
        //Serial.print(b, HEX);
    } while (b != ACK && b != NAK);
