From: iceman1001 Date: Fri, 29 Apr 2016 20:24:37 +0000 (+0200) Subject: CHG: only need a byte in this loop X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/b070f4e4952834bc2a02d86c7954c12dac189bc6?hp=ea1ee62e555f0e2b7e1c116cf357008206cb3e24 CHG: only need a byte in this loop --- 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; }