]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Bugfix hf 14a raw: v1.1.0
authorpwpiwi <pwpiwi@users.noreply.github.com>
Tue, 1 Jul 2014 06:28:28 +0000 (08:28 +0200)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Tue, 1 Jul 2014 06:28:28 +0000 (08:28 +0200)
number of bits sent was wrong when option -c was used without option -b

armsrc/iso14443a.c

index d5dd05ca14be2eaed5a0db7df78ace80df5c0df4..fe284352dfb0a46e8f41db99b462faf1fb58e63a 100644 (file)
@@ -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);
Impressum, Datenschutz