From 2f00f5a9b9c8d5aeff1e90c60cc4753c52ed5f4e Mon Sep 17 00:00:00 2001 From: LW Date: Sat, 14 Dec 2019 01:43:44 -0800 Subject: [PATCH] fix nested loop with cards that do not NACK --- client/mifare/mifarehost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mifare/mifarehost.c b/client/mifare/mifarehost.c index 9631508c..746a55a1 100644 --- a/client/mifare/mifarehost.c +++ b/client/mifare/mifarehost.c @@ -336,7 +336,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo, SendCommand(&c); if (!WaitForResponseTimeout(CMD_ACK, &resp, 2500)) { - // cards that do not NACK bad keys cause it to get stuck in a loop, so break it out + // cards that do not NACK bad keys cause it to get stuck in a loop, so break out of it UsbCommand c = {CMD_PING}; SendCommand(&c); (void)WaitForResponseTimeout(CMD_ACK,NULL,500);