nfc-anticol: fix ATS length
This commit is contained in:
parent
56ea2e65dc
commit
d019f9729d
1 changed files with 2 additions and 2 deletions
|
@ -114,11 +114,11 @@ transmit_bytes(const uint8_t *pbtTx, const size_t szTx)
|
||||||
// Transmit the command bytes
|
// Transmit the command bytes
|
||||||
if ((res = nfc_initiator_transceive_bytes(pnd, pbtTx, szTx, abtRx, sizeof(abtRx), 0)) < 0)
|
if ((res = nfc_initiator_transceive_bytes(pnd, pbtTx, szTx, abtRx, sizeof(abtRx), 0)) < 0)
|
||||||
return false;
|
return false;
|
||||||
|
szRx = res;
|
||||||
// Show received answer
|
// Show received answer
|
||||||
if (!quiet_output) {
|
if (!quiet_output) {
|
||||||
printf("Received bits: ");
|
printf("Received bits: ");
|
||||||
print_hex(abtRx, res);
|
print_hex(abtRx, szRx);
|
||||||
}
|
}
|
||||||
// Succesful transfer
|
// Succesful transfer
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue