mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-29 16:46:15 +00:00
Make use of the now available Tk info
This commit is contained in:
@@ -1184,7 +1184,7 @@ pn53x_target_init (nfc_device_t * pnd, const nfc_target_mode_t ntm, nfc_target_t
|
||||
pbtMifareParams = abtMifareParams;
|
||||
|
||||
// Historical Bytes
|
||||
pbtHBt = iso14443a_extract_historical_bytes (pnt->nti.nai.abtAts, pnt->nti.nai.szAtsLen, &szHBt);
|
||||
pbtHBt = iso14443a_locate_historical_bytes (pnt->nti.nai.abtAts, pnt->nti.nai.szAtsLen, &szHBt);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ append_iso14443a_crc (byte_t * pbtData, size_t szLen)
|
||||
}
|
||||
|
||||
byte_t *
|
||||
iso14443a_extract_historical_bytes(byte_t * pbtAts, size_t szAts, size_t * pszHB)
|
||||
iso14443a_locate_historical_bytes(byte_t * pbtAts, size_t szAts, size_t * pszTk)
|
||||
{
|
||||
if (szAts) {
|
||||
size_t offset = 1;
|
||||
@@ -68,10 +68,10 @@ iso14443a_extract_historical_bytes(byte_t * pbtAts, size_t szAts, size_t * pszHB
|
||||
offset++;
|
||||
}
|
||||
if (szAts > offset) {
|
||||
*pszHB = (szAts-offset);
|
||||
*pszTk = (szAts-offset);
|
||||
return (pbtAts+offset);
|
||||
}
|
||||
}
|
||||
*pszHB = 0;
|
||||
*pszTk = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user