added include for MIN macro, fixed typo in determin buffer size
This commit is contained in:
parent
0f8c23bddd
commit
55be1debaf
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
# define __NFC_DRIVER_PN532_UART_H__
|
||||
|
||||
# include <nfc/nfc-types.h>
|
||||
|
||||
# include <sys/param.h>
|
||||
# define PN532_UART_DRIVER_NAME "PN532_UART"
|
||||
|
||||
// Functions used by developer to handle connection to this device
|
||||
|
|
Loading…
Reference in a new issue