From: Martin Holst Swende <martin@swende.se>
Date: Thu, 5 Feb 2015 18:40:47 +0000 (+0100)
Subject: Fix #1 for pm3 iclass simulation, remove erroneous extra bit after transmission
X-Git-Tag: v2.0.0-rc1~31
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/bb42a03ef1318442fa0e8e2e07c7dbf8bd49fc96

Fix #1 for pm3 iclass simulation, remove erroneous extra bit after transmission
---

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;