Fix pn532_uart compilation
This commit is contained in:
parent
1e329529a7
commit
bd8a46c3c8
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ bool pn532_uart_transceive(nfc_device_t* pnd, const byte_t* pbtTx, const size_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// WARN: UART is a per byte reception, so you usually receive ACK and next frame the same time
|
// WARN: UART is a per byte reception, so you usually receive ACK and next frame the same time
|
||||||
if (!pn53x_transceive_callback(pnd, abtRxBuf, szRxBufLen))
|
if (!pn53x_transceive_check_ack_frame_callback(pnd, abtRxBuf, szRxBufLen))
|
||||||
return false;
|
return false;
|
||||||
szRxBufLen -= sizeof(ack_frame);
|
szRxBufLen -= sizeof(ack_frame);
|
||||||
memmove(abtRxBuf, abtRxBuf+sizeof(ack_frame), szRxBufLen);
|
memmove(abtRxBuf, abtRxBuf+sizeof(ack_frame), szRxBufLen);
|
||||||
|
|
Loading…
Add table
Reference in a new issue