diff --git a/NEWS b/NEWS index eb2c135..4e275b9 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,8 @@ API Changes: take a constant size for Rx buffer - New nfc_initiator_target_is_present() to test is the previously selected target is available in the field + - nfc_initiator_transceive_bytes() returns NFC_ETGRELEASED when AUTH + command failed on a Mifare Classic. New in 1.6.0-rc1: diff --git a/libnfc/nfc.c b/libnfc/nfc.c index acb2940..6f73fe1 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -614,6 +614,9 @@ nfc_initiator_deselect_target(nfc_device *pnd) * Tests show that on average this way of communicating is much faster than using the regular driver/middle-ware (often supplied by manufacturers). * * @warning The configuration option \a NP_HANDLE_PARITY must be set to \c true (the default value). + * + * @note When used with MIFARE Classic, NFC_ETGRELEASED error is returned if authentication command failed. You need to re-select the tag to operate with. + * */ int nfc_initiator_transceive_bytes(nfc_device *pnd, const uint8_t *pbtTx, const size_t szTx, uint8_t *pbtRx,