diff --git a/armsrc/iclass.c b/armsrc/iclass.c index 87cf97475..61961a3da 100644 --- a/armsrc/iclass.c +++ b/armsrc/iclass.c @@ -994,7 +994,8 @@ static bool GetIClassCommandFromReader(uint8_t *received, int *len, int maxLen) FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_ISO14443A | FPGA_HF_ISO14443A_TAGSIM_LISTEN); // clear RXRDY: uint8_t b = (uint8_t)AT91C_BASE_SSC->SSC_RHR; - + (void)b; + while (!BUTTON_PRESS()) { WDT_HIT(); @@ -1797,7 +1798,8 @@ static int GetIClassAnswer(uint8_t *receivedResponse, int maxLen, int *samples, // clear RXRDY: uint8_t b = (uint8_t)AT91C_BASE_SSC->SSC_RHR; - + (void)b; + while (!BUTTON_PRESS()) { WDT_HIT();