mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-19 18:21:52 +00:00
Fix build on Microsoft Windows.
Windows users: I hate you in secret.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user