diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-08-29 12:04:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-29 12:04:29 +0000 |
| commit | f86cf87f2f20f723e2ba2fe7d83908a2b3bac2d1 (patch) | |
| tree | 57f9200ed729746ef5f077af6c79863c37e824ae /examples/stm32h5/src/bin/stop.rs | |
| parent | df10e8a6bc407544d29c234ed00bdec3e9caf837 (diff) | |
| parent | e2c34ac735888d25d57d3ea07e8915c2e112048c (diff) | |
Merge pull request #4606 from diondokter/taskmeta-update-2
Taskmeta update
Diffstat (limited to 'examples/stm32h5/src/bin/stop.rs')
| -rw-r--r-- | examples/stm32h5/src/bin/stop.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32h5/src/bin/stop.rs b/examples/stm32h5/src/bin/stop.rs index e650791c5..3c4f49f64 100644 --- a/examples/stm32h5/src/bin/stop.rs +++ b/examples/stm32h5/src/bin/stop.rs | |||
| @@ -18,7 +18,7 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 18 | #[cortex_m_rt::entry] | 18 | #[cortex_m_rt::entry] |
| 19 | fn main() -> ! { | 19 | fn main() -> ! { |
| 20 | Executor::take().run(|spawner| { | 20 | Executor::take().run(|spawner| { |
| 21 | unwrap!(spawner.spawn(async_main(spawner))); | 21 | spawner.spawn(unwrap!(async_main(spawner))); |
| 22 | }) | 22 | }) |
| 23 | } | 23 | } |
| 24 | 24 | ||
| @@ -43,8 +43,8 @@ async fn async_main(spawner: Spawner) { | |||
| 43 | let rtc = RTC.init(rtc); | 43 | let rtc = RTC.init(rtc); |
| 44 | embassy_stm32::low_power::stop_with_rtc(rtc); | 44 | embassy_stm32::low_power::stop_with_rtc(rtc); |
| 45 | 45 | ||
| 46 | unwrap!(spawner.spawn(blinky(p.PB4.into()))); | 46 | spawner.spawn(unwrap!(blinky(p.PB4.into()))); |
| 47 | unwrap!(spawner.spawn(timeout())); | 47 | spawner.spawn(unwrap!(timeout())); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | #[embassy_executor::task] | 50 | #[embassy_executor::task] |
