From 8a50d606171df609f7a201f29b0a88e092fa6f40 Mon Sep 17 00:00:00 2001
From: Philippe Teuwen <phil@teuwen.org>
Date: Tue, 24 Oct 2017 14:10:52 +0200
Subject: [PATCH 1/1] Flush stdout when waiting for /dev/ttyACM0

---
 client/proxmark3.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/client/proxmark3.c b/client/proxmark3.c
index f7a87f6d..99ba9fba 100644
--- a/client/proxmark3.c
+++ b/client/proxmark3.c
@@ -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");
 	}
-- 
2.39.5