From 5fdb7e97e412826dc68225c608c60fe811e359c1 Mon Sep 17 00:00:00 2001 From: merlokk Date: Wed, 1 Nov 2017 18:10:11 +0200 Subject: [PATCH] all is OK. Just need to fix comment. --- armsrc/iso14443a.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index e5c56ec5..987d29ad 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1821,7 +1821,9 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_hi14a_card, u } // PICC compilant with iso14443a-4 ---> (SAK & 0x20 != 0) - if (sak & 0x20 && !no_rats) { + if( (sak & 0x20) == 0) return 2; + + if (!no_rats) { // Request for answer to select AppendCrc14443a(rats, 2); ReaderTransmit(rats, sizeof(rats), NULL);