aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/nrf/src/bin/b.rs
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/boot/application/nrf/src/bin/b.rs
parent7559f9e5834799b041d899767ef4305dcfdf0181 (diff)
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/boot/application/nrf/src/bin/b.rs')
-rw-r--r--examples/boot/application/nrf/src/bin/b.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/boot/application/nrf/src/bin/b.rs b/examples/boot/application/nrf/src/bin/b.rs
index 15ebce5fa..a88c3c56c 100644
--- a/examples/boot/application/nrf/src/bin/b.rs
+++ b/examples/boot/application/nrf/src/bin/b.rs
@@ -5,7 +5,7 @@
5 5
6use embassy_executor::Spawner; 6use embassy_executor::Spawner;
7use embassy_nrf::gpio::{Level, Output, OutputDrive}; 7use embassy_nrf::gpio::{Level, Output, OutputDrive};
8use embassy_time::{Duration, Timer}; 8use embassy_time::Timer;
9use panic_reset as _; 9use panic_reset as _;
10 10
11#[embassy_executor::main] 11#[embassy_executor::main]
@@ -19,8 +19,8 @@ async fn main(_spawner: Spawner) {
19 19
20 loop { 20 loop {
21 led.set_high(); 21 led.set_high();
22 Timer::after(Duration::from_millis(300)).await; 22 Timer::after_millis(300).await;
23 led.set_low(); 23 led.set_low();
24 Timer::after(Duration::from_millis(300)).await; 24 Timer::after_millis(300).await;
25 } 25 }
26} 26}