From b791951a453de45bdb73492a715c779f3c47f3eb Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 27 Oct 2009 11:53:28 +0000 Subject: [PATCH] Fix tag re-selection with UID lenght > 4 bytes (like DESFire or Ultralight). --- src/libnfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libnfc.c b/src/libnfc.c index e9d6da8..ca913a0 100644 --- a/src/libnfc.c +++ b/src/libnfc.c @@ -535,7 +535,7 @@ bool nfc_initiator_select_tag(const dev_info* pdi, const init_modulation im, con // Try to find a tag, call the tranceive callback function of the current device szRxLen = MAX_FRAME_LEN; // We can not use pn53x_transceive() because abtRx[0] gives no status info - if (!pdi->pdc->transceive(pdi->ds,abtCmd,4+szInitDataLen,abtRx,&szRxLen)) return false; + if (!pdi->pdc->transceive(pdi->ds,abtCmd,4+szInitLen,abtRx,&szRxLen)) return false; // Make sure one tag has been found, the PN53X returns 0x00 if none was available if (abtRx[0] != 1) return false;