Skip to content

Commit

Permalink
Fix pico builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidmackenzie committed Mar 4, 2025
1 parent 7021e2c commit e1de878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions porky/src/porky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use embassy_executor::Spawner;
#[cfg(all(feature = "usb", feature = "wifi"))]
use embassy_futures::select::{select, Either};
use embassy_rp::bind_interrupts;
#[cfg(feature = "pico2")]
use embassy_rp::block::ImageDef;
use embassy_rp::flash::{Blocking, Flash};
#[cfg(feature = "wifi")]
Expand Down Expand Up @@ -81,6 +82,7 @@ mod mdns;
/// The Pi Pico GPIO [PinDefinition]s that get passed to the GUI
mod pin_descriptions;

#[cfg(feature = "pico2")]
#[link_section = ".start_block"]
#[used]
pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe();
Expand Down

0 comments on commit e1de878

Please sign in to comment.