From 24e7b20d042bb96815ea63b2a453d1f4cc354bc0 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 13 Apr 2010 12:48:52 +0000 Subject: [PATCH] Add debug output when pnd->pdc->tranceive() failed. --- libnfc/nfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libnfc/nfc.c b/libnfc/nfc.c index 1a2f974..5c78f47 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -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];