aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tamper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tamper.c b/tamper.c
index d1d5c04..9169895 100644
--- a/tamper.c
+++ b/tamper.c
@@ -213,8 +213,12 @@ mkm_wipe()
spi_setup(1);
mkm_grab();
+
mkm_chip_select(1);
spi_set_operation(SPI_OPERATION_SEQUENCE);
+ mkm_chip_select(0);
+
+ mkm_chip_select(1);
spi_write(SPI_WRITE);
spi_write(0); /* Address, high byte. */
spi_write(0); /* Address, low byte. */