hf mf sim - testing to remove the field detection, its inside emcmd anyway

This commit is contained in:
iceman1001 2021-03-15 01:26:55 +01:00
parent 139d934085
commit bc4a5cf4de

View file

@ -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