Fix a regression introduced at r461.
This prevents the ATR_REQ from being processed and some tags detection fails in libfreefare.
This commit is contained in:
parent
4ff66d125f
commit
e6d079d87a
1 changed files with 2 additions and 2 deletions
|
@ -294,7 +294,7 @@ pn53x_InListPassiveTarget(const nfc_device_t* pnd,
|
||||||
size_t szRxLen = MAX_FRAME_LEN;
|
size_t szRxLen = MAX_FRAME_LEN;
|
||||||
// We can not use pn53x_transceive() because abtRx[0] gives no status info
|
// We can not use pn53x_transceive() because abtRx[0] gives no status info
|
||||||
if(pnd->pdc->transceive(pnd->nds,abtCmd,4+szInitiatorDataLen,pbtTargetsData,&szRxLen)) {
|
if(pnd->pdc->transceive(pnd->nds,abtCmd,4+szInitiatorDataLen,pbtTargetsData,&szRxLen)) {
|
||||||
*pszTargetsData = pbtTargetsData[0];
|
*pszTargetsData = szRxLen;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
@ -309,4 +309,4 @@ pn53x_InDeselect(const nfc_device_t* pnd, const uint8_t ui8Target)
|
||||||
abtCmd[2] = ui8Target;
|
abtCmd[2] = ui8Target;
|
||||||
|
|
||||||
return(pn53x_transceive(pnd,abtCmd,sizeof(abtCmd),NULL,NULL));
|
return(pn53x_transceive(pnd,abtCmd,sizeof(abtCmd),NULL,NULL));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue