From bd3047f31608a96351b96f9f04ec0563441c506e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 31 Aug 2020 01:16:13 +0200 Subject: [PATCH] less checks for dataavailable --- armsrc/iso14443a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index d5417f108..97f17396a 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1832,8 +1832,8 @@ int EmGetCmd(uint8_t *received, uint16_t *len, uint8_t *par) { for (;;) { WDT_HIT(); - if (check == 1000) { - if (BUTTON_PRESS() || data_available()) + if (check == 2000) { + if (BUTTON_PRESS()) return 1; check = 0; } @@ -1959,7 +1959,6 @@ int EmSendCmd14443aRaw(uint8_t *resp, uint16_t respLen) { b = (uint16_t)(AT91C_BASE_SSC->SSC_RHR); (void)b; } - if (BUTTON_PRESS()) break; } // Ensure that the FPGA Delay Queue is empty before we switch to TAGSIM_LISTEN again: