     Log.print("        Done: ");
     Log.print(sizeof data);
     Log.println(" bytes uploaded.");
+
+#ifdef LED_PIN
+    digitalWrite(LED_PIN, 0);
+#endif
 }
 
 void loop () {}

    for (long i = 0; i < SPEED * 100000; ++i)
        if (Target.available())
            return Target.read();
    return 0;
}


    }
    Log.print(" FAILED - got 0x");
    Log.println(b, HEX);

    while (true) { // halt, blinking rapidly
        toggleLed();
        delay(100);
    }
}

// send a byte to the target and update the global checkum value
