aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBIGTREETECH <38851044+bigtreetech@users.noreply.github.com>2024-12-07 02:41:22 +0800
committerGitHub <noreply@github.com>2024-12-06 13:41:22 -0500
commitb7233d1197d9a2158676ad39d02b80f787054e20 (patch)
treea8745363ec4292933e3d149d81cef2b2252f0e09 /lib
parent16b4b6b302ac3ffcd55006cd76265aad4e26ecc8 (diff)
downloadkutter-b7233d1197d9a2158676ad39d02b80f787054e20.tar.gz
kutter-b7233d1197d9a2158676ad39d02b80f787054e20.tar.xz
kutter-b7233d1197d9a2158676ad39d02b80f787054e20.zip
lib: fix rp2040_flash (#6760)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
Diffstat (limited to 'lib')
-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");
}