From bc4a5cf4dea6c527a8b2e5d3afa6e6dc3f8e054c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 15 Mar 2021 01:26:55 +0100 Subject: [PATCH] hf mf sim - testing to remove the field detection, its inside emcmd anyway --- armsrc/mifaresim.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/armsrc/mifaresim.c b/armsrc/mifaresim.c index bba3132a7..6018f6b30 100644 --- a/armsrc/mifaresim.c +++ b/armsrc/mifaresim.c @@ -452,7 +452,7 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 uint8_t uid_len = 0; // 4,7, 10 uint32_t cuid = 0; - int vHf = 0; // in mV +// int vHf = 0; // in mV uint32_t selTimer = 0; uint32_t authTimer = 0; @@ -535,7 +535,7 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 WDT_HIT(); - if (counter == 1000) { + if (counter == 3000) { if (data_available()) { Dbprintf("----------- " _GREEN_("BREAKING") " ----------"); break; @@ -545,6 +545,7 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 counter++; } +/* // find reader field if (cardSTATE == MFEMUL_NOFIELD) { @@ -561,6 +562,7 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 button_pushed = BUTTON_PRESS(); continue; } + */ FpgaEnableTracing(); //Now, get data