From 1f55fcf4496652497f717c6407922ad5bba49d82 Mon Sep 17 00:00:00 2001 From: rprinz08 Date: Tue, 12 May 2020 16:58:42 +0200 Subject: [PATCH] fixed bug in BIOS spi flash "fw" command --- litex/soc/software/bios/commands/cmd_spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2