aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf-rtos-trace/src/bin
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-10-15 00:57:25 +0100
committerAdam Greig <[email protected]>2023-10-15 01:30:12 +0100
commit0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch)
treef6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/nrf-rtos-trace/src/bin
parent7559f9e5834799b041d899767ef4305dcfdf0181 (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.rs4
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;
6use core::task::Poll; 6use core::task::Poll;
7 7
8use embassy_executor::Spawner; 8use embassy_executor::Spawner;
9use embassy_time::{Duration, Instant, Timer}; 9use embassy_time::{Instant, Timer};
10#[cfg(feature = "log")] 10#[cfg(feature = "log")]
11use log::*; 11use log::*;
12use panic_probe as _; 12use 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