time: Update examples, tests, and other code to use new Timer::after_x convenience methods
This commit is contained in:
@@ -8,7 +8,7 @@ use embassy_stm32::bind_interrupts;
|
||||
use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler};
|
||||
use embassy_stm32::rcc::WPAN_DEFAULT;
|
||||
use embassy_stm32_wpan::TlMbox;
|
||||
use embassy_time::{Duration, Timer};
|
||||
use embassy_time::Timer;
|
||||
use {defmt_rtt as _, panic_probe as _};
|
||||
|
||||
bind_interrupts!(struct Irqs{
|
||||
@@ -71,7 +71,7 @@ async fn main(_spawner: Spawner) {
|
||||
}
|
||||
}
|
||||
|
||||
Timer::after(Duration::from_millis(50)).await;
|
||||
Timer::after_millis(50).await;
|
||||
}
|
||||
|
||||
info!("Test OK");
|
||||
|
||||
Reference in New Issue
Block a user