From: pwpiwi Date: Tue, 1 Jul 2014 06:28:28 +0000 (+0200) Subject: Bugfix hf 14a raw: X-Git-Tag: v1.1.0^0 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/c7324bef2894b8515a71f28cc948fa6bea9ccbaf Bugfix hf 14a raw: number of bits sent was wrong when option -c was used without option -b --- diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index d5dd05ca..fe284352 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1861,10 +1861,9 @@ void ReaderIso14443a(UsbCommand *c) if(param & ISO14A_APPEND_CRC) { AppendCrc14443a(cmd,len); len += 2; - lenbits += 16; + if (lenbits) lenbits += 16; } if(lenbits>0) { - ReaderTransmitBitsPar(cmd,lenbits,GetParity(cmd,lenbits/8), NULL); } else { ReaderTransmit(cmd,len, NULL);