From cdaef147595eebb009cf2cf9a52033d2e496e12a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 20 Oct 2017 18:24:04 +0200 Subject: [PATCH] fix: forgot param --- client/cmdmain.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/cmdmain.c b/client/cmdmain.c index d4fff6ec8..cc3e8fa50 100644 --- a/client/cmdmain.c +++ b/client/cmdmain.c @@ -160,9 +160,8 @@ bool WaitForResponseTimeoutW(uint32_t cmd, UsbCommand* response, size_t ms_timeo return true; } - if (msclock() - start_time > ms_timeout) { + if (msclock() - start_time > ms_timeout) break; - } if (msclock() - start_time > 2000 && show_warning) { PrintAndLog("Waiting for a response from the proxmark..."); @@ -178,7 +177,7 @@ bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeou } bool WaitForResponse(uint32_t cmd, UsbCommand* response) { - return WaitForResponseTimeoutW(cmd, response, -1); + return WaitForResponseTimeoutW(cmd, response, -1, true); } //-----------------------------------------------------------------------------