From c94c8ccf7c994c8f5e6a6da70157503e14c2a71a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 18 Sep 2017 09:53:52 -0700 Subject: [PATCH] ao-tools/ao-sendfake: Show progress sending flight data Print '.' after each chunk. Signed-off-by: Keith Packard --- ao-tools/ao-sendfake/ao-sendfake.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ao-tools/ao-sendfake/ao-sendfake.c b/ao-tools/ao-sendfake/ao-sendfake.c index 20bfd608..56c54be6 100644 --- a/ao-tools/ao-sendfake/ao-sendfake.c +++ b/ao-tools/ao-sendfake/ao-sendfake.c @@ -116,8 +116,10 @@ main (int argc, char **argv) /* And dump the resulting bits to the device */ - while ((c = fread(buf, 1, sizeof(buf), file)) > 0) + while ((c = fread(buf, 1, sizeof(buf), file)) > 0) { cc_usb_write(cc, buf, c); + printf("."); fflush(stdout); + } done(cc, 0); } -- 2.30.2