Make use of the now available Tk info
This commit is contained in:
parent
cbca45e21c
commit
ffe50562dd
5 changed files with 17 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue