From c7324bef2894b8515a71f28cc948fa6bea9ccbaf Mon Sep 17 00:00:00 2001 From: pwpiwi Date: Tue, 1 Jul 2014 08:28:28 +0200 Subject: [PATCH] Bugfix hf 14a raw: number of bits sent was wrong when option -c was used without option -b --- armsrc/iso14443a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.5