X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Fao-sky-flash%2Fsky_serial.c;h=7230bf8c194a9dbc48f367ea737637363978f877;hb=6cf27ddd5e84824610d6a0bcbb81ba4626b71409;hp=4aeb14581801129c41593461d9e8058d2f71d408;hpb=dd8b2eadab12965d232640449b1d1c9f2484238c;p=fw%2Faltos diff --git a/ao-tools/ao-sky-flash/sky_serial.c b/ao-tools/ao-sky-flash/sky_serial.c index 4aeb1458..7230bf8c 100644 --- a/ao-tools/ao-sky-flash/sky_serial.c +++ b/ao-tools/ao-sky-flash/sky_serial.c @@ -103,16 +103,14 @@ skytraq_write(int fd, const char *data, int len) int r; int us; + skytraq_dbg_printf (0, "%4d: ", len); + if (len < 70) + skytraq_dbg_buf(0, data, len); while (len) { int this_time = len; if (this_time > 128) this_time = 128; - if (this_time < 70) { - skytraq_dbg_printf (0, "%4d: ", this_time); - skytraq_dbg_buf(0, data, this_time); - } else { - skytraq_dbg_printf (0, "%d bytes (%d remain)", this_time, len); - } + skytraq_dbg_printf(0, "."); fflush(stdout); r = write(fd, data, this_time); if (r <= 0)