Fix a misunderstood Historical Bytes decoding
This commit is contained in:
parent
7c76e1bf32
commit
8142e69121
@ -132,12 +132,8 @@ print_nfc_iso14443a_info (const nfc_iso14443a_info_t nai)
|
|||||||
printf ("\n");
|
printf ("\n");
|
||||||
if (nai.szAtsLen > offset) {
|
if (nai.szAtsLen > offset) {
|
||||||
// XXX More decoding can be done following ISO/IEC 7816-4 (8.1.1 Historical bytes)
|
// XXX More decoding can be done following ISO/IEC 7816-4 (8.1.1 Historical bytes)
|
||||||
printf (" T1: %02x\n", nai.abtAts[offset] );
|
printf (" Historical bytes: " );
|
||||||
offset++;
|
print_hex (nai.abtAts + offset, (nai.szAtsLen - offset));
|
||||||
if (nai.szAtsLen > offset) {
|
|
||||||
printf (" Tk: " );
|
|
||||||
print_hex (nai.abtAts + offset, (nai.szAtsLen - offset));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((nai.btSak & SAK_ISO14443_4_COMPLIANT) || (nai.btSak & SAK_ISO18092_COMPLIANT)) {
|
if ((nai.btSak & SAK_ISO14443_4_COMPLIANT) || (nai.btSak & SAK_ISO18092_COMPLIANT)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user