diff options
| author | diondokter <[email protected]> | 2025-08-29 14:44:32 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-11 14:45:27 +0200 |
| commit | 99209accb5b37f236691e060474bfc4823d2e123 (patch) | |
| tree | 835c6f7a179d0fc19816d9c5cd560b68d7f75b55 /examples/nrf52840-edf/src/bin/basic.rs | |
| parent | 52d178560501a464dba67da89a1570ae9a2cf66c (diff) | |
Add edf example to CI and fix the example
Diffstat (limited to 'examples/nrf52840-edf/src/bin/basic.rs')
| -rw-r--r-- | examples/nrf52840-edf/src/bin/basic.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/nrf52840-edf/src/bin/basic.rs b/examples/nrf52840-edf/src/bin/basic.rs index c270c67b9..8a8e46449 100644 --- a/examples/nrf52840-edf/src/bin/basic.rs +++ b/examples/nrf52840-edf/src/bin/basic.rs | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | use core::sync::atomic::{compiler_fence, Ordering}; | 15 | use core::sync::atomic::{compiler_fence, Ordering}; |
| 16 | 16 | ||
| 17 | use defmt::unwrap; | ||
| 17 | use embassy_executor::raw::Deadline; | 18 | use embassy_executor::raw::Deadline; |
| 18 | use embassy_executor::Spawner; | 19 | use embassy_executor::Spawner; |
| 19 | use embassy_time::{Duration, Instant, Timer}; | 20 | use embassy_time::{Duration, Instant, Timer}; |
| @@ -57,7 +58,7 @@ async fn main(spawner: Spawner) { | |||
| 57 | 58 | ||
| 58 | // Spawn all of our load workers! | 59 | // Spawn all of our load workers! |
| 59 | for i in 0..tasks { | 60 | for i in 0..tasks { |
| 60 | spawner.must_spawn(load_task(i, work_time_ticks, time_window)); | 61 | spawner.spawn(unwrap!(load_task(i, work_time_ticks, time_window))); |
| 61 | } | 62 | } |
| 62 | 63 | ||
| 63 | // Let all the tasks spin up | 64 | // Let all the tasks spin up |
