Fix a misunderstood Historical Bytes decoding

This commit is contained in:
Romuald Conty 2010-10-14 16:28:16 +00:00
parent 7c76e1bf32
commit 8142e69121

View file

@ -132,14 +132,10 @@ print_nfc_iso14443a_info (const nfc_iso14443a_info_t nai)
printf ("\n");
if (nai.szAtsLen > offset) {
// XXX More decoding can be done following ISO/IEC 7816-4 (8.1.1 Historical bytes)
printf (" T1: %02x\n", nai.abtAts[offset] );
offset++;
if (nai.szAtsLen > offset) {
printf (" Tk: " );
printf (" Historical bytes: " );
print_hex (nai.abtAts + offset, (nai.szAtsLen - offset));
}
}
}
if ((nai.btSak & SAK_ISO14443_4_COMPLIANT) || (nai.btSak & SAK_ISO18092_COMPLIANT)) {
printf (" Compliant with: ");
if (nai.btSak & SAK_ISO14443_4_COMPLIANT)