From cf65145353ba21da2fc9d121c30c2d1b597abcba Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 24 Jan 2020 20:12:34 +0100 Subject: [PATCH] less waiting --- armsrc/mifarecmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index 69e3dd04e..9e9c721bd 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -1240,7 +1240,7 @@ uint8_t chkKey(struct chk_t *c) { } res = mifare_classic_authex(c->pcs, c->cuid, c->block, c->keyType, c->key, AUTH_FIRST, NULL, NULL); - CHK_TIMEOUT(); +// CHK_TIMEOUT(); // if successful auth, send HALT // if ( !res ) @@ -1760,7 +1760,7 @@ void MifareChkKeys(uint8_t *datain) { key = bytes_to_num(datain + i * 6, 6); res = mifare_classic_auth(pcs, cuid, blockNo, keyType, key, AUTH_FIRST); - CHK_TIMEOUT(); +// CHK_TIMEOUT(); if (res) continue; @@ -1784,13 +1784,13 @@ void MifareChkKeys(uint8_t *datain) { void MifareChkKeys_file(uint8_t *fn) { -#ifdef WITH_FLASH +#ifdef WITH_FLASH SpinOff(0); int changed = rdv40_spiffs_lazy_mount(); uint32_t size = size_in_spiffs((char *)fn); uint8_t *mem = BigBuf_malloc(size); - + rdv40_spiffs_read_as_filetype((char *)fn, mem, size, RDV40_SPIFFS_SAFETY_SAFE); if (changed) { @@ -2229,7 +2229,7 @@ void MifareHasStaticNonce() { nt = bytes_to_num(rec, 4); - CHK_TIMEOUT(); +// CHK_TIMEOUT(); } OUT: