fix: reset card state

reset card state after gen2 detection in ATS based magic identification

Signed-off-by: 火山大隊長 <brian20020925@gmail.com>
This commit is contained in:
火山大隊長 2025-07-04 02:35:10 +08:00 committed by GitHub
commit 02a4594a1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}