ao-tools/ao-sendfake: Show progress sending flight data
authorKeith Packard <keithp@keithp.com>
Mon, 18 Sep 2017 16:53:52 +0000 (09:53 -0700)
committerKeith 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

index 20bfd6081627f0e5ad903fa845da68867f7fe9e2..56c54be6979b6c78fb0d6217829f54ce7118d78e 100644 (file)
@@ -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);
 }