diff options
Diffstat (limited to 'digilent_spi.c')
-rw-r--r-- | digilent_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/digilent_spi.c b/digilent_spi.c index b6e998d5..41342a85 100644 --- a/digilent_spi.c +++ b/digilent_spi.c @@ -408,7 +408,7 @@ static int digilent_spi_init(const struct programmer_cfg *cfg) goto close_handle; } - param_str = extract_programmer_param_str(NULL, "spispeed"); + param_str = extract_programmer_param_str(cfg, "spispeed"); if (param_str) { for (i = 0; spispeeds[i].name; ++i) { if (!strcasecmp(spispeeds[i].name, param_str)) { @@ -424,7 +424,7 @@ static int digilent_spi_init(const struct programmer_cfg *cfg) free(param_str); } - param_str = extract_programmer_param_str(NULL, "reset"); + param_str = extract_programmer_param_str(cfg, "reset"); if (param_str && strlen(param_str)) reset_board = (param_str[0] == '1'); else |