From b070f4e4952834bc2a02d86c7954c12dac189bc6 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 29 Apr 2016 22:24:37 +0200 Subject: [PATCH] CHG: only need a byte in this loop --- armsrc/iso14443a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 7822ee22..ede8501e 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1570,7 +1570,7 @@ int EmSendCmd14443aRaw(uint8_t *resp, uint16_t respLen, bool correctionNeeded) { b = AT91C_BASE_SSC->SSC_RHR; (void) b; // wait for the FPGA to signal fdt_indicator == 1 (the FPGA is ready to queue new data in its delay line) - for (uint16_t j = 0; j < 5; j++) { // allow timeout - better late than never + for (uint8_t j = 0; j < 5; j++) { // allow timeout - better late than never while(!(AT91C_BASE_SSC->SSC_SR & AT91C_SSC_RXRDY)); if (AT91C_BASE_SSC->SSC_RHR) break; } -- 2.39.2