comparison loadtools/flutil.c @ 95:336f5cc96810

fc-loadtool flash program-bin: smarter progress indication
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 01 Sep 2013 03:42:11 +0000
parents a7da6648a7f8
children 96f56e875862
comparison
equal deleted inserted replaced
94:1f035187e98f 95:336f5cc96810
137 { 137 {
138 int i; 138 int i;
139 u_char *dp; 139 u_char *dp;
140 char *s; 140 char *s;
141 141
142 for (dp = bin, s = strbuf, i =0; i < nwords; dp += 2, s += 4, i++) { 142 for (dp = bin, s = strbuf, i = 0; i < nwords; dp += 2, s += 4, i++) {
143 if (m0src) { 143 if (m0src) {
144 sprintf(s, "%02X", dp[0]); 144 sprintf(s, "%02X", dp[0]);
145 sprintf(s + 2, "%02X", dp[1]); 145 sprintf(s + 2, "%02X", dp[1]);
146 } else { 146 } else {
147 sprintf(s, "%02X", dp[1]); 147 sprintf(s, "%02X", dp[1]);