From eccf0d3bbc112d7133ea906f2b323fde3eec788b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 1 Oct 2019 23:00:51 +0200 Subject: [PATCH] Avoid client CPU busy loop when waiting pm3 (e.g. when simulating tag) --- client/comms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/comms.c b/client/comms.c index 8d2c8f733..f3dbf09ce 100644 --- a/client/comms.c +++ b/client/comms.c @@ -733,6 +733,8 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms PrintAndLogEx(INFO, "You can cancel this operation by pressing the pm3 button"); show_warning = false; } + // just to avoid CPU busy loop: + msleep(10); } return false; }