Bugfix hf 14a raw:

number of bits sent was wrong when option -c was used without option -b
This commit is contained in:
pwpiwi 2014-07-01 08:28:28 +02:00
parent 1604d0a290
commit c7324bef28

View 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);