From afd8cacb90b4fa24f085946c472957d424389ff6 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 5 Feb 2024 09:03:52 +0100 Subject: [PATCH] fix --- client/src/cmdhfmfu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 059e1bf04..a09dd1b9c 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -385,9 +385,7 @@ static int try_default_3des_keys(uint8_t **correct_key) { } } - if (setDeviceDebugLevel(dbg_curr, false) != PM3_SUCCESS) { - return res; - } + setDeviceDebugLevel(dbg_curr, false); return res; } @@ -1583,6 +1581,7 @@ static int mfu_get_version_uid(uint8_t *version, uint8_t *uid) { static int mfu_fingerprint(uint64_t tagtype, bool hasAuthKey, uint8_t *authkey, int ak_len) { + uint8_t dbg_curr = DBG_NONE; uint8_t *data = NULL; int res = PM3_ESOFT; PrintAndLogEx(INFO, ""); @@ -1612,7 +1611,7 @@ static int mfu_fingerprint(uint64_t tagtype, bool hasAuthKey, uint8_t *authkey, keytype = 2; // UL_EV1/NTAG auth } - uint8_t dbg_curr = DBG_NONE; + if (getDeviceDebugLevel(&dbg_curr) != PM3_SUCCESS) { res = PM3_ESOFT; goto out;