From 1d018b9ccb453223d446fb95b4794b3135cd2ec8 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 30 Oct 2020 09:23:22 +0100 Subject: [PATCH] hf 14a info: add msgs when forced RATS config --- armsrc/iso14443a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index fe8831470..8f19b0be9 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2623,9 +2623,10 @@ int iso14443a_select_card(uint8_t *uid_ptr, iso14a_card_select_t *p_card, uint32 // PICC compliant with iso14443a-4 ---> (SAK & 0x20 != 0) if ((sak & 0x20) == 0) return 2; } else if (hf14aconfig.forcerats == 2) { + if ((sak & 0x20) != 0) Dbprintf("Skipping RATS according to hf 14a config"); return 2; } // else force RATS - + if ((sak & 0x20) == 0) Dbprintf("Forcing RATS according to hf 14a config"); // RATS, Request for answer to select if (no_rats == false) { uint8_t rats[] = { ISO14443A_CMD_RATS, 0x80, 0x00, 0x00 }; // FSD=256, FSDI=8, CID=0