diff options
-rw-r--r-- | tamper.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -225,10 +225,17 @@ mkm_wipe() for (int i = 0; i < 0x1fff; i++) /* 8192 bytes (64Kbit). */ spi_write(0); mkm_chip_select(0); + mkm_release(); spi_setup(0); AVR_LED_PORT &= ~_BV(AVR_LED_RED_BIT); + + /* Flash blue LED three times to indicate wipe is done */ + for (int x = 0; x < 6; x++) { + AVR_LED_PORT ^= _BV(AVR_LED_BLUE_BIT); + for (int i = 0; i < 3200; i++); + } } static inline void |