aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rp2040_flash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rp2040_flash')
-rw-r--r--lib/rp2040_flash/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rp2040_flash/main.c b/lib/rp2040_flash/main.c
index 78007130..017fe945 100644
--- a/lib/rp2040_flash/main.c
+++ b/lib/rp2040_flash/main.c
@@ -146,7 +146,7 @@ int picoboot_flash(libusb_device_handle *handle, struct flash_data *image, model
}
fprintf(stderr, "Rebooting device\n");
- if (model == 2040) {
+ if (model == rp2040) {
if (picoboot_reboot(handle, 0, 0, 500)) {
return report_error(handle, "reboot");
}