Update hex2hcd.c
This commit is contained in:
parent
817e2a7f29
commit
b617769511
1 changed files with 81 additions and 82 deletions
|
@ -101,8 +101,7 @@ int main(int argc, char *argv[])
|
|||
int type;
|
||||
char obuf[7];
|
||||
unsigned int dest_addr;
|
||||
while ((rbuf[len - 1] == '\r') || (rbuf[len - 1] == '\n'))
|
||||
len--;
|
||||
while ((rbuf[len - 1] == '\r') || (rbuf[len - 1] == '\n')) len--;
|
||||
printf("%d, %s\n", (int)len, rbuf);
|
||||
if (!check_hex_line(rbuf, len))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue