Add debug output when pnd->pdc->tranceive() failed.
This commit is contained in:
parent
29fad31ee5
commit
24e7b20d04
1 changed files with 1 additions and 0 deletions
|
@ -608,6 +608,7 @@ nfc_initiator_poll_targets(const nfc_device_t* pnd,
|
||||||
bool res = pnd->pdc->transceive(pnd->nds, pbtTxInAutoPoll, szTxInAutoPoll, abtRx, &szRxLen);
|
bool res = pnd->pdc->transceive(pnd->nds, pbtTxInAutoPoll, szTxInAutoPoll, abtRx, &szRxLen);
|
||||||
|
|
||||||
if((szRxLen == 0)||(res == false)) {
|
if((szRxLen == 0)||(res == false)) {
|
||||||
|
DBG("pnd->pdc->tranceive() failed: szRxLen=%d, res=%d", szRxLen, res);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
*pszTargetFound = abtRx[0];
|
*pszTargetFound = abtRx[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue