shell: use min() macro

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent e9a9236fc7
commit 1188b24a31
  1. 2
      source/shell/flash.c

@ -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);

Loading…
Cancel
Save