projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
494467c
)
ao-tools/ao-sendfake: Show progress sending flight data
author
Keith Packard
<keithp@keithp.com>
Mon, 18 Sep 2017 16:53:52 +0000
(09:53 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 18 Sep 2017 16:59:44 +0000
(09:59 -0700)
Print '.' after each chunk.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-sendfake/ao-sendfake.c
patch
|
blob
|
history
diff --git
a/ao-tools/ao-sendfake/ao-sendfake.c
b/ao-tools/ao-sendfake/ao-sendfake.c
index 20bfd6081627f0e5ad903fa845da68867f7fe9e2..56c54be6979b6c78fb0d6217829f54ce7118d78e 100644
(file)
--- 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);
}