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/boot/application/nrf/src/bin | |
| parent | 7559f9e5834799b041d899767ef4305dcfdf0181 (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')
| -rw-r--r-- | examples/boot/application/nrf/src/bin/b.rs | 6 |
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 | ||
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_nrf::gpio::{Level, Output, OutputDrive}; | 7 | use embassy_nrf::gpio::{Level, Output, OutputDrive}; |
| 8 | use embassy_time::{Duration, Timer}; | 8 | use embassy_time::Timer; |
| 9 | use panic_reset as _; | 9 | use 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 | } |
