ao-tools/ao-sendfake: Show progress sending flight data
[fw/altos] / 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);
 }