From: Keith Packard Date: Mon, 18 Sep 2017 16:53:52 +0000 (-0700) Subject: ao-tools/ao-sendfake: Show progress sending flight data X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c94c8ccf7c994c8f5e6a6da70157503e14c2a71a ao-tools/ao-sendfake: Show progress sending flight data Print '.' after each chunk. Signed-off-by: Keith Packard --- 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); }