diff --git a/client/cmdhf.c b/client/cmdhf.c index 181b10858..7f6c7facf 100644 --- a/client/cmdhf.c +++ b/client/cmdhf.c @@ -158,7 +158,7 @@ int CmdHFSearch(const char *Cmd) { PROMPT_CLEARLINE; PrintAndLogEx(INPLACE, "Searching for iClass / PicoPass tag..."); if (IfPm3Iclass()) { - if (readIclass(false, false) == 1) { + if (readIclass(false, false) == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("iClass tag / PicoPass tag") "found\n"); return PM3_SUCCESS; }