mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-26 19:56:39 +00:00
added include for MIN macro, fixed typo in determin buffer size
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user