From 358130505a549e5cc9994fc5652eca020167e5af Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 7 Sep 2024 11:01:50 +0200 Subject: [PATCH] hf mf sim: accept RATS no matter the value of PCD FSDI & CID --- armsrc/mifaresim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/mifaresim.c b/armsrc/mifaresim.c index 29df75fb6..c0a97ceab 100644 --- a/armsrc/mifaresim.c +++ b/armsrc/mifaresim.c @@ -1076,7 +1076,7 @@ void Mifare1ksim(uint16_t flags, uint8_t exitAfterNReads, uint8_t *datain, uint1 } // case MFEMUL_WORK => CMD RATS - if (receivedCmd_len == 4 && receivedCmd_dec[0] == ISO14443A_CMD_RATS && receivedCmd_dec[1] == 0x80) { + if (receivedCmd_len == 4 && receivedCmd_dec[0] == ISO14443A_CMD_RATS) { if (rats && rats_len) { if (encrypted_data) { memcpy(response, rats, rats_len);