]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Flush stdout when waiting for /dev/ttyACM0 443/head
authorPhilippe Teuwen <phil@teuwen.org>
Tue, 24 Oct 2017 12:10:52 +0000 (14:10 +0200)
committerPhilippe Teuwen <phil@teuwen.org>
Tue, 24 Oct 2017 12:10:52 +0000 (14:10 +0200)
client/proxmark3.c

index f7a87f6d27ae86a491362eab5b522c9fae8eb519..99ba9fbad77ec9dbcea40bc0b36074ea7914b0e5 100644 (file)
@@ -355,11 +355,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");
        }
Impressum, Datenschutz