Fix pn532_uart compilation

This commit is contained in:
Romuald Conty 2010-08-20 10:25:37 +00:00
parent 1e329529a7
commit bd8a46c3c8

View file

@ -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);