- Check button press when you have NOFIELD

- struct nonces_t as the same define client and arm, so mfkey is working
This commit is contained in:
etmatrix 2017-08-15 19:34:05 +02:00
commit 437d052b38

View file

@ -2359,6 +2359,7 @@ typedef struct {
uint32_t nonce;
uint32_t ar;
uint32_t nr;
uint32_t at;
uint32_t nonce2;
uint32_t ar2;
uint32_t nr2;
@ -2562,7 +2563,10 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
LED_A_ON();
}
}
if (cardSTATE == MFEMUL_NOFIELD) continue;
if (cardSTATE == MFEMUL_NOFIELD) {
button_pushed = BUTTON_PRESS();
continue;
}
//Now, get data
res = EmGetCmd(receivedCmd, &len, receivedCmd_par);