mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2025-10-13 15:06:39 +00:00
fixed missing await
This commit is contained in:
parent
d90376121e
commit
57ccc0cc8b
@ -87,7 +87,7 @@ async fn main(mut spawner: Spawner) {
|
|||||||
#[embassy_executor::task]
|
#[embassy_executor::task]
|
||||||
async fn sd_detect_task(sd_det_gpio: peripherals::GPIO0<'static>) {
|
async fn sd_detect_task(sd_det_gpio: peripherals::GPIO0<'static>) {
|
||||||
let mut sd_det = Input::new(sd_det_gpio, InputConfig::default());
|
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 {
|
loop {
|
||||||
sd_det.wait_for_any_edge().await;
|
sd_det.wait_for_any_edge().await;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user