Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
Diff: FreescaleIAP/FreescaleIAP.cpp
- Revision:
- 80:94dc2946871b
- Parent:
- 79:682ae3171a08
- Child:
- 82:4f6209cb5c33
--- a/FreescaleIAP/FreescaleIAP.cpp Thu Mar 23 05:19:05 2017 +0000 +++ b/FreescaleIAP/FreescaleIAP.cpp Fri Mar 24 05:24:45 2017 +0000 @@ -285,11 +285,16 @@ { // Verify the write. If it was successful, we're done. if (memcmp((void *)address, src, length) == 0) + { + // LEDs to green on success + diagLED(0, 1, 0); break; + } // We have a mismatch between the flash data and the source. // Flag the error and go back for another attempt. status = FreescaleIAP::VerifyError; + diagLED(1, 0, 0); } }