From 98e24013cfe68aef60d129f089ed72ec4c5dcac5 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 5 Nov 2018 22:34:46 +0100 Subject: [PATCH] chg: 'hf mf chk' - since the function ends with droping the field, lets just make sure the field is off to start with. --- armsrc/mifarecmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index fcfe99134..7d39b3f29 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -1425,6 +1425,8 @@ OUT: void MifareChkKeys(uint16_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *datain) { + FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); + struct Crypto1State mpcs = {0, 0}; struct Crypto1State *pcs; pcs = &mpcs;