Add debug output when pnd->pdc->tranceive() failed.

This commit is contained in:
Romuald Conty 2010-04-13 12:48:52 +00:00
parent 29fad31ee5
commit 24e7b20d04

View file

@ -608,6 +608,7 @@ nfc_initiator_poll_targets(const nfc_device_t* pnd,
bool res = pnd->pdc->transceive(pnd->nds, pbtTxInAutoPoll, szTxInAutoPoll, abtRx, &szRxLen);
if((szRxLen == 0)||(res == false)) {
DBG("pnd->pdc->tranceive() failed: szRxLen=%d, res=%d", szRxLen, res);
return false;
} else {
*pszTargetFound = abtRx[0];