mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 18:13:46 +00:00
Fix a misunderstood Historical Bytes decoding
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user