mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
Command for accessing serial flash update
Change strtoul number base of argv 3 from 0 to 16 Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
This commit is contained in:
parent
ee0a846246
commit
6e8d58d366
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ static int do_spi_flash_probe(int argc, char *argv[])
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
}
|
||||||
if (argc >= 4) {
|
if (argc >= 4) {
|
||||||
mode = simple_strtoul(argv[3], &endp, 0);
|
mode = simple_strtoul(argv[3], &endp, 16);
|
||||||
if (*argv[3] == 0 || *endp != 0)
|
if (*argv[3] == 0 || *endp != 0)
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue