Skip to content

Commit

Permalink
fix 14b dump
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Aug 29, 2023
1 parent 0cbc0c2 commit 32f892e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/cmdhf14b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

2 comments on commit 32f892e

@DidierA
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just making a PR for this exact fix :)

@iceman1001
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you snooze you loose ;)

Please sign in to comment.