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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue