diff --git a/src/main.rs b/src/main.rs index e677ba3..b0b7e78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,7 +87,7 @@ async fn main(mut spawner: Spawner) { #[embassy_executor::task] async fn sd_detect_task(sd_det_gpio: peripherals::GPIO0<'static>) { let mut sd_det = Input::new(sd_det_gpio, InputConfig::default()); - sd_det.wait_for(esp_hal::gpio::Event::AnyEdge); + sd_det.wait_for(esp_hal::gpio::Event::AnyEdge).await; loop { sd_det.wait_for_any_edge().await;