diff options
| author | Adam Greig <[email protected]> | 2023-10-15 00:57:25 +0100 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2023-10-15 01:30:12 +0100 |
| commit | 0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch) | |
| tree | f6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/nrf-rtos-trace/src/bin | |
| parent | 7559f9e5834799b041d899767ef4305dcfdf0181 (diff) | |
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/nrf-rtos-trace/src/bin')
| -rw-r--r-- | examples/nrf-rtos-trace/src/bin/rtos_trace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf-rtos-trace/src/bin/rtos_trace.rs b/examples/nrf-rtos-trace/src/bin/rtos_trace.rs index cf8b2f808..888375693 100644 --- a/examples/nrf-rtos-trace/src/bin/rtos_trace.rs +++ b/examples/nrf-rtos-trace/src/bin/rtos_trace.rs | |||
| @@ -6,7 +6,7 @@ use core::future::poll_fn; | |||
| 6 | use core::task::Poll; | 6 | use core::task::Poll; |
| 7 | 7 | ||
| 8 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| 9 | use embassy_time::{Duration, Instant, Timer}; | 9 | use embassy_time::{Instant, Timer}; |
| 10 | #[cfg(feature = "log")] | 10 | #[cfg(feature = "log")] |
| 11 | use log::*; | 11 | use log::*; |
| 12 | use panic_probe as _; | 12 | use panic_probe as _; |
| @@ -34,7 +34,7 @@ async fn run1() { | |||
| 34 | info!("DING DONG"); | 34 | info!("DING DONG"); |
| 35 | #[cfg(not(feature = "log"))] | 35 | #[cfg(not(feature = "log"))] |
| 36 | rtos_trace::trace::marker(13); | 36 | rtos_trace::trace::marker(13); |
| 37 | Timer::after(Duration::from_ticks(16000)).await; | 37 | Timer::after_ticks(16000).await; |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | 40 | ||
