diff options
author | alexmoon <alex.r.moon@gmail.com> | 2022-08-03 19:57:00 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 19:57:00 -0600 |
commit | ab0ad770c729b4f034bf0a085b50347a3e6b2ea9 (patch) | |
tree | de4346b0a4292773a0aff19256d6e11c69045056 /examples/src/bin/ble_scan.rs | |
parent | 068536b616ef3790d8758b164f2fc3803c89fc26 (diff) | |
parent | efa5e46b917bf750665a12711bd0e8f18c412cab (diff) | |
download | nrf-softdevice-ab0ad770c729b4f034bf0a085b50347a3e6b2ea9.zip |
Merge pull request #128 from embassy-rs/update-embassy
Update Embassy (for the executor/util crate split)
Diffstat (limited to 'examples/src/bin/ble_scan.rs')
-rw-r--r-- | examples/src/bin/ble_scan.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/bin/ble_scan.rs b/examples/src/bin/ble_scan.rs index c8ed543..7c33c31 100644 --- a/examples/src/bin/ble_scan.rs +++ b/examples/src/bin/ble_scan.rs @@ -9,19 +9,19 @@ use core::{mem, slice}; use cortex_m_rt::entry; use defmt::*; -use embassy::executor::Executor; -use embassy::util::Forever; +use embassy_executor::executor::Executor; +use embassy_util::Forever; use nrf_softdevice::ble::central; 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; } -#[embassy::task] +#[embassy_executor::task] async fn ble_task(sd: &'static Softdevice) { let config = central::ScanConfig::default(); let res = central::scan(sd, &config, |params| unsafe { |