Skip to content

Commit

Permalink
fix bad comparisions
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Nov 1, 2023
1 parent ae6ba39 commit a92e712
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/cmdnfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ static int CmdNfcDecode(const char *Cmd) {
uint8_t *tmp = dump;

// if not MIFARE Classic default sizes, assume its Ultralight/NTAG
if (bytes_read != 4096 || bytes_read != 2048 || bytes_read != 1024 || bytes_read != 320) {
if ( bytes_read != MIFARE_4K_MAX_BYTES
&& bytes_read != MIFARE_2K_MAX_BYTES
&& bytes_read != MIFARE_1K_MAX_BYTES
&& bytes_read != MIFARE_MINI_MAX_BYTES) {

uint8_t **pd = &tmp;
mfu_df_e df = detect_mfu_dump_format(pd, verbose);
Expand Down

0 comments on commit a92e712

Please sign in to comment.