diff options
author | Keith Packard <keithp@keithp.com> | 2017-09-18 09:53:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-09-18 09:59:44 -0700 |
commit | c94c8ccf7c994c8f5e6a6da70157503e14c2a71a (patch) | |
tree | 1c4634d7c5b56e574c0bb6982b72ca3eb4cffdad | |
parent | 494467c27661d176f5004d3c777a5850c8d23c2d (diff) |
ao-tools/ao-sendfake: Show progress sending flight data
Print '.' after each chunk.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | ao-tools/ao-sendfake/ao-sendfake.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |