From bb42a03ef1318442fa0e8e2e07c7dbf8bd49fc96 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 5 Feb 2015 19:40:47 +0100 Subject: [PATCH] Fix #1 for pm3 iclass simulation, remove erroneous extra bit after transmission --- armsrc/iso14443a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index b1639a88..b73495a3 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1534,7 +1534,7 @@ static int EmSendCmd14443aRaw(uint8_t *resp, uint16_t respLen, bool correctionNe AT91C_BASE_SSC->SSC_THR = SEC_F; // send cycle - for(; i <= respLen; ) { + for(; i < respLen; ) { if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_TXRDY)) { AT91C_BASE_SSC->SSC_THR = resp[i++]; FpgaSendQueueDelay = (uint8_t)AT91C_BASE_SSC->SSC_RHR; -- 2.39.5