From 786858aa6ce7d52655496ec388889d02d4f7e0d8 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 15 Apr 2021 21:51:47 +0200 Subject: [PATCH] =?UTF-8?q?fix=20=C2=B4hf=20search'=20/=20=C2=B4hf=2015=20?= =?UTF-8?q?reader=C2=B4=20looping=20gave=20false=20result?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/cmdhf15.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/cmdhf15.c b/client/src/cmdhf15.c index 9b1f9be52..cf083332c 100644 --- a/client/src/cmdhf15.c +++ b/client/src/cmdhf15.c @@ -417,7 +417,7 @@ static int getUID(bool loop, uint8_t *buf) { uint8_t fast = 1; uint8_t reply = 1; - int res = PM3_SUCCESS; + int res = PM3_ESOFT; do { clearCommandBuffer(); @@ -437,11 +437,12 @@ static int getUID(bool loop, uint8_t *buf) { PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s"), iso15693_sprintUID(NULL, buf)); PrintAndLogEx(SUCCESS, "TYPE: " _YELLOW_("%s"), getTagInfo_15(buf)); + res = PM3_SUCCESS; + if (loop == false) { - res = PM3_SUCCESS; break; } - } + } } } while (loop && kbd_enter_pressed() == false);