projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f062c0c
)
fixed bug in BIOS spi flash "fw" command
author
rprinz08
<richard.prinz@min.at>
Tue, 12 May 2020 14:58:42 +0000
(16:58 +0200)
committer
rprinz08
<richard.prinz@min.at>
Tue, 12 May 2020 14:58:42 +0000
(16:58 +0200)
litex/soc/software/bios/commands/cmd_spi_flash.c
patch
|
blob
|
history
diff --git
a/litex/soc/software/bios/commands/cmd_spi_flash.c
b/litex/soc/software/bios/commands/cmd_spi_flash.c
index e607a89df368e2f7b837b284a5f344c99865de75..8ca18c87fdcc17640701ce3b6b2f29e84c4fbc6d 100644
(file)
--- a/
litex/soc/software/bios/commands/cmd_spi_flash.c
+++ b/
litex/soc/software/bios/commands/cmd_spi_flash.c
@@
-43,7
+43,7
@@
static void fw(int nb_params, char **params)
if (nb_params == 2) {
count = 1;
} else {
- count = strtoul(
count
, &c, 0);
+ count = strtoul(
params[2]
, &c, 0);
if (*c != 0) {
printf("Incorrect count");
return;