Skip to content

Commit

Permalink
Fix esp-idf build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 9, 2023
1 parent 705cdac commit fb0c5ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,12 @@ mod wasm {

#[cfg(target_os = "espidf")]
mod espidf {
use core::num::NonZeroU32;

use esp_idf_hal::task::notification;

pub use super::*;

pub type PlatformExecutor<'a> = LocalExecutor<'a, PlatformWakeup>;
pub type PlatformWakeup<'a> = EspWakeup;
pub type PlatformWakeup = EspWakeup;

pub type EspWakeup = notification::Notification;
pub type EspWake = notification::Notifier;
Expand All @@ -745,7 +743,7 @@ mod espidf {

impl Wait for EspWakeup {
fn wait(&self) {
self.0.wait_any()
self.wait_any()
}
}
}

0 comments on commit fb0c5ba

Please sign in to comment.