From 423efaccadefe71fc2c1adb9f7823d2a64844e51 Mon Sep 17 00:00:00 2001 From: douniwan5788 Date: Fri, 6 Jul 2012 07:06:43 +0000 Subject: [PATCH] fixed the mifare bug --- armsrc/iso14443a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 5cd7ea78..bae80b8e 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1925,7 +1925,7 @@ void ReaderMifare(uint32_t parameter) { if ( (parameter != 0) && (memcmp(nt, nt_noattack, 4) == 0) ) continue; - isNULL = (nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0); + isNULL = !(nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0); if ( (isNULL != 0 ) && (memcmp(nt, nt_attacked, 4) != 0) ) continue; if (nt_diff == 0) -- 2.39.5