FreeCalypso > hg > freecalypso-sw
changeset 106:ae4921a3aa33
fc-loadtool program-{m0,srec}: more usable progress indication
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 11 Sep 2013 17:58:55 +0000 |
parents | 02cb0206aa47 |
children | 8b44e806b6e1 |
files | loadtools/flprogsrec.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/loadtools/flprogsrec.c Tue Sep 03 07:31:26 2013 +0000 +++ b/loadtools/flprogsrec.c Wed Sep 11 17:58:55 2013 +0000 @@ -95,7 +95,7 @@ return(-1); } if (!rec_count) - printf("Programming flash, each \'.\' is one S-record\n"); + printf("Programming flash, each \'.\' is 100 S-records\n"); sprintf(shortarg, "%lx", (u_long) srr.addr); build_flashw_hex_string(srr.record + 5, longarg, srr.datalen >> 1, is_m0); @@ -109,9 +109,11 @@ fclose(srr.openfile); return(resp); } - putchar('.'); - fflush(stdout); rec_count++; + if (rec_count % 100 == 0) { + putchar('.'); + fflush(stdout); + } } /* got S7 */ fclose(srr.openfile);