From 32f892e512d97be402c0abaf6f00675686ed0893 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 29 Aug 2023 22:37:56 +0200 Subject: [PATCH] fix 14b dump --- client/src/cmdhf14b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index 536fa2ce3..ae3dd5002 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -443,7 +443,7 @@ static bool get_14b_UID(uint8_t *d, iso14b_type_t *found_type) { iso14b_card_select_t *card = (iso14b_card_select_t*)d; uint8_t empty[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - if (memcmp(card->uid, empty, card->uidlen)) { + if (memcmp(card->uid, empty, card->uidlen) == 0) { return false; } *found_type = ISO14B_SR;