diff --git a/client/flash.c b/client/flash.c index ec76d65d..7f77d3cd 100644 --- a/client/flash.c +++ b/client/flash.c @@ -336,7 +336,7 @@ static int enter_bootloader(char *serial_port_name) fprintf(stderr,"Waiting for Proxmark to reappear on %s",serial_port_name); do { - sleep(1); + msleep(1000); fprintf(stderr, "."); } while (!OpenProxmark(0)); fprintf(stderr," Found.\n"); diff --git a/client/flasher.c b/client/flasher.c index 9bc52e94..788d2348 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -135,7 +135,7 @@ int main(int argc, char **argv) fprintf(stderr, "Waiting for Proxmark to appear on %s", serial_port_name); do { - sleep(1); + msleep(1000); fprintf(stderr, "."); } while (!OpenProxmark(0)); diff --git a/client/hid-flasher/flash.c b/client/hid-flasher/flash.c index e88e2121..7f03ebab 100644 --- a/client/hid-flasher/flash.c +++ b/client/hid-flasher/flash.c @@ -333,9 +333,9 @@ static int enter_bootloader(void) fprintf(stderr,"Waiting for Proxmark to reappear on USB..."); CloseProxmark(); - sleep(1); + msleep(1000); while (!OpenProxmark(0)) { - sleep(1); + msleep(1000); fprintf(stderr, "."); } fprintf(stderr," Found.\n"); diff --git a/client/hid-flasher/flasher.c b/client/hid-flasher/flasher.c index a7faf171..ac7df69e 100644 --- a/client/hid-flasher/flasher.c +++ b/client/hid-flasher/flasher.c @@ -59,7 +59,7 @@ int main(int argc, char **argv) fprintf(stderr, "Waiting for Proxmark to appear on USB..."); while (!OpenProxmark(1)) { - sleep(1); + msleep(1000); fprintf(stderr, "."); } fprintf(stderr, " Found.\n"); diff --git a/client/hid-flasher/proxusb.c b/client/hid-flasher/proxusb.c index e69636ae..3b96be37 100644 --- a/client/hid-flasher/proxusb.c +++ b/client/hid-flasher/proxusb.c @@ -42,7 +42,7 @@ void SendCommand(UsbCommand *c) usb_close(devh); devh = NULL; } - while(!OpenProxmark(0)) { sleep(1); } + while(!OpenProxmark(0)) { msleep(1000); } printf(PROXPROMPT); fflush(NULL); @@ -69,7 +69,7 @@ bool ReceiveCommandPoll(UsbCommand *c) usb_close(devh); devh = NULL; } - while(!OpenProxmark(0)) { sleep(1); } + while(!OpenProxmark(0)) { msleep(1000); } printf(PROXPROMPT); fflush(NULL);