Fix build on Microsoft Windows.
Windows users: I hate you in secret.
This commit is contained in:
parent
d7c16d6d1a
commit
fd0efd4a62
9 changed files with 52 additions and 30 deletions
|
|
@ -295,6 +295,7 @@ pn53x_InListPassiveTarget(const nfc_device_t* pnd,
|
|||
const byte_t* pbtInitiatorData, const size_t szInitiatorDataLen,
|
||||
byte_t* pbtTargetsData, size_t* pszTargetsData)
|
||||
{
|
||||
size_t szRxLen;
|
||||
byte_t abtCmd[sizeof(pncmd_initiator_list_passive)];
|
||||
memcpy(abtCmd,pncmd_initiator_list_passive,sizeof(pncmd_initiator_list_passive));
|
||||
|
||||
|
|
@ -306,7 +307,7 @@ pn53x_InListPassiveTarget(const nfc_device_t* pnd,
|
|||
if (pbtInitiatorData) memcpy(abtCmd+4,pbtInitiatorData,szInitiatorDataLen);
|
||||
|
||||
// Try to find a tag, call the tranceive callback function of the current device
|
||||
size_t szRxLen = MAX_FRAME_LEN;
|
||||
szRxLen = MAX_FRAME_LEN;
|
||||
// We can not use pn53x_transceive() because abtRx[0] gives no status info
|
||||
if(pnd->pdc->transceive(pnd->nds,abtCmd,4+szInitiatorDataLen,pbtTargetsData,&szRxLen)) {
|
||||
*pszTargetsData = szRxLen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue