aboutsummaryrefslogtreecommitdiffstats
path: root/developerbox_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'developerbox_spi.c')
-rw-r--r--developerbox_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/developerbox_spi.c b/developerbox_spi.c
index 16fa351f..3774d047 100644
--- a/developerbox_spi.c
+++ b/developerbox_spi.c
@@ -152,7 +152,7 @@ static int developerbox_spi_init(const struct programmer_cfg *cfg)
return 1;
}
- char *serialno = extract_programmer_param_str(NULL, "serial");
+ char *serialno = extract_programmer_param_str(cfg, "serial");
if (serialno)
msg_pdbg("Looking for serial number commencing %s\n", serialno);
cp210x_handle = usb_dev_get_by_vid_pid_serial(usb_ctx,