diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-08-03 16:19:04 +0200 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-08-03 16:19:04 +0200 |
commit | efa5e46b917bf750665a12711bd0e8f18c412cab (patch) | |
tree | de4346b0a4292773a0aff19256d6e11c69045056 /examples/src/bin/ble_bas_central.rs | |
parent | 068536b616ef3790d8758b164f2fc3803c89fc26 (diff) | |
download | nrf-softdevice-efa5e46b917bf750665a12711bd0e8f18c412cab.zip |
Update Embassy (for the executor/util crate split)
Diffstat (limited to 'examples/src/bin/ble_bas_central.rs')
-rw-r--r-- | examples/src/bin/ble_bas_central.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/bin/ble_bas_central.rs b/examples/src/bin/ble_bas_central.rs index f0bda6e..3594f55 100644 --- a/examples/src/bin/ble_bas_central.rs +++ b/examples/src/bin/ble_bas_central.rs @@ -9,14 +9,14 @@ use core::mem; use cortex_m_rt::entry; use defmt::{info, *}; -use embassy::executor::Executor; -use embassy::util::Forever; +use embassy_executor::executor::Executor; +use embassy_util::Forever; use nrf_softdevice::ble::{central, gatt_client, Address, AddressType}; use nrf_softdevice::{raw, Softdevice}; static EXECUTOR: Forever<Executor> = Forever::new(); -#[embassy::task] +#[embassy_executor::task] async fn softdevice_task(sd: &'static Softdevice) { sd.run().await; } @@ -27,7 +27,7 @@ struct BatteryServiceClient { battery_level: u8, } -#[embassy::task] +#[embassy_executor::task] async fn ble_central_task(sd: &'static Softdevice) { let addrs = &[&Address::new( AddressType::RandomStatic, |