Skip to content

Commit

Permalink
lib: fix rp2040_flash (#6760)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan.Ma from BigTreeTech <[email protected]>
  • Loading branch information
bigtreetech authored Dec 6, 2024
1 parent 16b4b6b commit b7233d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rp2040_flash/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit b7233d1

Please sign in to comment.