fancy timers

This commit is contained in:
Philippe Teuwen committed 2020-05-13 23:20:46 +02:00
1 parent af47a3fd34
commit 6a006677ef
2 files changed
+11 -9

No files matched your search

+3 -3
View File
@@ -547,12 +547,12 @@ bool OpenProxmark(void *port, bool wait_for_port, int timeout, bool flash_mode,
PrintAndLogEx(SUCCESS, "Waiting for Proxmark3 to appear on " _YELLOW_("%s"), portname);
fflush(stdout);
int openCount = 0;
PrintAndLogEx(INPLACE, "");
PrintAndLogEx(INPLACE, "% 3i", timeout);
do {
sp = uart_open(portname, speed);
msleep(500);
printf(".");
fflush(stdout);
PrintAndLogEx(INPLACE, "% 3i", timeout - openCount -1);
} while (++openCount < timeout && (sp == INVALID_SERIAL_PORT || sp == CLAIMED_SERIAL_PORT));
}