From 02a4594a1b78b5b81772c61f6ee3d0e31b4ccc69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E5=B1=B1=E5=A4=A7=E9=9A=8A=E9=95=B7?= Date: Fri, 4 Jul 2025 02:35:10 +0800 Subject: [PATCH] fix: reset card state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reset card state after gen2 detection in ATS based magic identification Signed-off-by: 火山大隊長 --- armsrc/mifarecmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index d421a2c85..a9c0f68f1 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -3025,6 +3025,7 @@ void MifareCIdent(bool is_mfc, uint8_t keytype, uint8_t *key) { // Use special magic detection function that always attempts RATS regardless of SAK res = iso14443a_select_card_for_magic(uid, card, &cuid, true, 0); if (res) { + mf_reset_card(); if (cuid == 0xAA55C396) { flag |= MAGIC_FLAG_GEN_UNFUSED; }