From 0e37a1e9e945ef4a1655fb91cfa9b4771a92c3a7 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 22 Sep 2010 12:42:14 +0000 Subject: [PATCH] Fix typo, add a minor XXX --- libnfc/chips/pn53x.c | 6 +++--- libnfc/chips/pn53x.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index fe11be7..069a3c3 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -134,7 +134,7 @@ pn53x_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxLen // Call the tranceive callback function of the current device if (!pnd->pdc->transceive (pnd, pbtTx, szTxLen, pbtRx, pszRxLen)) return false; - + // XXX Should we put all these numbers behind a human-readable #define ? switch (pbtTx[1]) { case 0x16: // PowerDown case 0x40: // InDataExchange @@ -174,7 +174,7 @@ pn53x_get_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t * ui8Value) } bool -pn53x_set_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t ui8SybmolMask, uint8_t ui8Value) +pn53x_set_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t ui8SymbolMask, uint8_t ui8Value) { uint8_t ui8Current; byte_t abtCmd[sizeof (pncmd_set_register)]; @@ -185,7 +185,7 @@ pn53x_set_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t ui8SybmolMask, uint if (!pn53x_get_reg (pnd, ui16Reg, &ui8Current)) return false; - abtCmd[4] = ui8Value | (ui8Current & (~ui8SybmolMask)); + abtCmd[4] = ui8Value | (ui8Current & (~ui8SymbolMask)); return pn53x_transceive (pnd, abtCmd, 5, NULL, NULL); } diff --git a/libnfc/chips/pn53x.h b/libnfc/chips/pn53x.h index 321270b..19e80f5 100644 --- a/libnfc/chips/pn53x.h +++ b/libnfc/chips/pn53x.h @@ -85,7 +85,7 @@ bool pn53x_transceive_check_error_frame_callback (nfc_device_t * pnd, const b bool pn53x_transceive (nfc_device_t * pnd, const byte_t * pbtTx, const size_t szTxLen, byte_t * pbtRx, size_t * pszRxLen); bool pn53x_get_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t * ui8Value); -bool pn53x_set_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t ui8SybmolMask, uint8_t ui8Value); +bool pn53x_set_reg (nfc_device_t * pnd, uint16_t ui16Reg, uint8_t ui8SymbolMask, uint8_t ui8Value); bool pn53x_set_parameters (nfc_device_t * pnd, uint8_t ui8Value); bool pn53x_set_tx_bits (nfc_device_t * pnd, uint8_t ui8Bits); bool pn53x_wrap_frame (const byte_t * pbtTx, const size_t szTxBits, const byte_t * pbtTxPar, byte_t * pbtFrame,