lib: fix rp2040_flash (#6760)

Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
BIGTREETECH authored and GitHub committed 2024-12-06 13:41:22 -05:00
1 parent 16b4b6b302
commit b7233d1197
1 file changed
+1 -1
+1 -1
View File
@@ -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");
}