diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-08-17 18:49:55 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-08-17 22:16:46 +0200 |
| commit | fc6e1e06b305d302d1b7ad17e8ef3a9be986c358 (patch) | |
| tree | 545ad829660f6053d29a01da286d03ec3d49f5ca /examples/nrf/src/bin/pubsub.rs | |
| parent | d881f3ad9186cf3279aa1ba27093bad94035c186 (diff) | |
Remove HAL initialization from #[embassy::main] macro.
Diffstat (limited to 'examples/nrf/src/bin/pubsub.rs')
| -rw-r--r-- | examples/nrf/src/bin/pubsub.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/nrf/src/bin/pubsub.rs b/examples/nrf/src/bin/pubsub.rs index 5f33f3e0b..d1441d5c1 100644 --- a/examples/nrf/src/bin/pubsub.rs +++ b/examples/nrf/src/bin/pubsub.rs | |||
| @@ -20,7 +20,8 @@ enum Message { | |||
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | #[embassy_executor::main] | 22 | #[embassy_executor::main] |
| 23 | async fn main(spawner: Spawner, _p: embassy_nrf::Peripherals) { | 23 | async fn main(spawner: Spawner) { |
| 24 | let _p = embassy_nrf::init(Default::default()); | ||
| 24 | defmt::info!("Hello World!"); | 25 | defmt::info!("Hello World!"); |
| 25 | 26 | ||
| 26 | // It's good to set up the subscribers before publishing anything. | 27 | // It's good to set up the subscribers before publishing anything. |
