From 25e1b8a3c6c0049ccf8e6755f476cf9e68db20ed Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sun, 3 Jun 2012 21:32:57 +0000 Subject: [PATCH] do not display an error when authentication failed --- src/mifare.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mifare.c b/src/mifare.c index 7a3aeac..458955e 100644 --- a/src/mifare.c +++ b/src/mifare.c @@ -110,6 +110,9 @@ nfc_initiator_mifare_cmd(nfc_device *pnd, const mifare_cmd mc, const uint8_t ui8 // authenticated on a sector but the requested MIFARE cmd (read, write) // is not permitted by current acces bytes; // So there is nothing to do here. + } else if (res == NFC_ETGRELEASED) { + // If AUTH_* command fails, returned error is NFC_ETGRELEASED + // So there is nothing to do here. (don't hurt the user ;-)) } else { nfc_perror(pnd, "nfc_initiator_transceive_bytes"); }