shell: use min() macro

This commit is contained in:
S.J.R. van Schaik 2017-03-17 13:37:30 +00:00
parent e9a9236fc7
commit 1188b24a31

View file

@ -157,7 +157,7 @@ static void do_flash_write(const char *s)
return;
while (len) {
nbytes = (len > 256) ? 256 : len;
nbytes = min(len, 256);
parse_hex(stdin, buf, nbytes);
printf("\n");
print_hex_ascii(buf, nbytes);