fixed bug in BIOS spi flash "fw" command
authorrprinz08 <richard.prinz@min.at>
Tue, 12 May 2020 14:58:42 +0000 (16:58 +0200)
committerrprinz08 <richard.prinz@min.at>
Tue, 12 May 2020 14:58:42 +0000 (16:58 +0200)
litex/soc/software/bios/commands/cmd_spi_flash.c

index e607a89df368e2f7b837b284a5f344c99865de75..8ca18c87fdcc17640701ce3b6b2f29e84c4fbc6d 100644 (file)
@@ -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;