From e6d079d87a6879c8a974a6b7371b111446c57c30 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Sat, 24 Jul 2010 17:20:48 +0000 Subject: [PATCH] Fix a regression introduced at r461. This prevents the ATR_REQ from being processed and some tags detection fails in libfreefare. --- libnfc/chips/pn53x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index b7a46e7..2881327 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -294,7 +294,7 @@ pn53x_InListPassiveTarget(const nfc_device_t* pnd, size_t szRxLen = MAX_FRAME_LEN; // We can not use pn53x_transceive() because abtRx[0] gives no status info if(pnd->pdc->transceive(pnd->nds,abtCmd,4+szInitiatorDataLen,pbtTargetsData,&szRxLen)) { - *pszTargetsData = pbtTargetsData[0]; + *pszTargetsData = szRxLen; return true; } else { return false; @@ -309,4 +309,4 @@ pn53x_InDeselect(const nfc_device_t* pnd, const uint8_t ui8Target) abtCmd[2] = ui8Target; return(pn53x_transceive(pnd,abtCmd,sizeof(abtCmd),NULL,NULL)); -} \ No newline at end of file +}