diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 2079d28..30f913e 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -189,7 +189,7 @@ pn532_uart_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t sz { byte_t abtTxBuf[TX_BUFFER_LEN] = { 0x00, 0x00, 0xff }; // Every packet must start with "00 00 ff" byte_t abtRxBuf[RX_BUFFER_LEN]; - size_t szRxBufLen = MIN( RX_BUFFER_LEN, *pbtRx ); + size_t szRxBufLen = MIN( RX_BUFFER_LEN, *pszRx ); size_t szPos; int res; diff --git a/libnfc/drivers/pn532_uart.h b/libnfc/drivers/pn532_uart.h index ef72f81..aa912f1 100644 --- a/libnfc/drivers/pn532_uart.h +++ b/libnfc/drivers/pn532_uart.h @@ -25,7 +25,7 @@ # define __NFC_DRIVER_PN532_UART_H__ # include - +# include # define PN532_UART_DRIVER_NAME "PN532_UART" // Functions used by developer to handle connection to this device