Skip to content

Commit

Permalink
Move delay
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidmackenzie committed Mar 4, 2025
1 parent 73f0d80 commit 6aa2cbe
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 @@ -248,6 +248,8 @@ async fn main(spawner: Spawner) {
// create hardware description
#[allow(unused_mut)]
let mut flash = flash::get_flash(peripherals.FLASH);
#[cfg(feature = "pico2")] // pico2 needs a delay
embassy_time::Timer::after_millis(10).await;
#[cfg(feature = "pico1")]
let serial_number = flash::serial_number(&mut flash);
#[cfg(feature = "pico2")]
Expand Down

0 comments on commit 6aa2cbe

Please sign in to comment.