mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-28 02:50:21 +08:00
CHG: flush stdout, https://github.com/Proxmark/proxmark3/pull/443 (@doegox)
This commit is contained in:
parent
1f8b08cf57
commit
74842edf1d
1 changed files with 2 additions and 0 deletions
|
@ -449,11 +449,13 @@ int main(int argc, char* argv[]) {
|
|||
sp = uart_open(argv[1]);
|
||||
} else {
|
||||
printf("Waiting for Proxmark to appear on %s ", argv[1]);
|
||||
fflush(stdout);
|
||||
int openCount = 0;
|
||||
do {
|
||||
sp = uart_open(argv[1]);
|
||||
msleep(1000);
|
||||
printf(".");
|
||||
fflush(stdout);
|
||||
} while(++openCount < 20 && (sp == INVALID_SERIAL_PORT || sp == CLAIMED_SERIAL_PORT));
|
||||
printf("\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue