diff options
| author | Dion Dokter <[email protected]> | 2023-10-20 14:17:55 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2023-10-20 14:17:55 +0200 |
| commit | 5b3f75dc726afaf21b6c957b88f8eeb0c9ae322c (patch) | |
| tree | c2b2920f63d83e32dd7f3f2ef18c64d73b997557 /examples/boot/application/nrf/src/bin | |
| parent | 6f2995cd4c70a2b6c977f553a2d5efcd8216bba7 (diff) | |
| parent | 88ada521461031b7241b09e40aa56f4e64827967 (diff) | |
Merge branch 'master' into center-align
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 | } |
