Avoid client CPU busy loop when waiting pm3 (e.g. when simulating tag)

This commit is contained in:
Philippe Teuwen 2019-10-01 23:00:51 +02:00
commit eccf0d3bbc

View file

@ -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;
}