From a0ece6020399c4bc8c547352d3d5078f5f30b710 Mon Sep 17 00:00:00 2001 From: Roel Verdult Date: Tue, 28 Sep 2010 14:48:57 +0000 Subject: [PATCH] let the PN53x functions call it's own configuration, not the main nfc_configure() --- libnfc/chips/pn53x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index a0601e7..20186eb 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -940,9 +940,9 @@ pn53x_target_init (nfc_device_t * pnd, byte_t * pbtRx, size_t * pszRxBits) // Make sure the CRC & parity are handled by the device, this is needed for target_init to work properly if (!bCrc) - nfc_configure ((nfc_device_t *) pnd, NDO_HANDLE_CRC, true); + pn53x_configure ((nfc_device_t *) pnd, NDO_HANDLE_CRC, true); if (!bPar) - nfc_configure ((nfc_device_t *) pnd, NDO_HANDLE_PARITY, true); + pn53x_configure ((nfc_device_t *) pnd, NDO_HANDLE_PARITY, true); // Let the PN53X be activated by the RF level detector from power down mode if (!pn53x_set_reg (pnd, REG_CIU_TX_AUTO, SYMBOL_INITIAL_RF_ON, 0x04)) @@ -965,9 +965,9 @@ pn53x_target_init (nfc_device_t * pnd, byte_t * pbtRx, size_t * pszRxBits) // Restore the CRC & parity setting to the original value (if needed) if (!bCrc) - nfc_configure ((nfc_device_t *) pnd, NDO_HANDLE_CRC, false); + pn53x_configure ((nfc_device_t *) pnd, NDO_HANDLE_CRC, false); if (!bPar) - nfc_configure ((nfc_device_t *) pnd, NDO_HANDLE_PARITY, false); + pn53x_configure ((nfc_device_t *) pnd, NDO_HANDLE_PARITY, false); return true; }