From: rprinz08 Date: Tue, 12 May 2020 14:58:42 +0000 (+0200) Subject: fixed bug in BIOS spi flash "fw" command X-Git-Tag: 24jan2021_ls180~347^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f55fcf4496652497f717c6407922ad5bba49d82;p=litex.git fixed bug in BIOS spi flash "fw" command --- diff --git a/litex/soc/software/bios/commands/cmd_spi_flash.c b/litex/soc/software/bios/commands/cmd_spi_flash.c index e607a89d..8ca18c87 100644 --- 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;