From e701022257b221762c642d1143b4906ac4b71134 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 24 Dec 2019 11:30:07 +0100 Subject: [PATCH] fix: hf search - iClass wrong return code check --- client/cmdhf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }