summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_l2cap_peripheral.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r--examples/src/bin/ble_l2cap_peripheral.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs
index d542a45..3e72725 100644
--- a/examples/src/bin/ble_l2cap_peripheral.rs
+++ b/examples/src/bin/ble_l2cap_peripheral.rs
@@ -10,8 +10,8 @@ use core::ptr::NonNull;
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::{l2cap, peripheral};
use nrf_softdevice::{ble, raw, RawError, Softdevice};
@@ -19,12 +19,12 @@ static EXECUTOR: Forever<Executor> = Forever::new();
const PSM: u16 = 0x2349;
-#[embassy::task]
+#[embassy_executor::task]
async fn softdevice_task(sd: &'static Softdevice) {
sd.run().await;
}
-#[embassy::task]
+#[embassy_executor::task]
async fn bluetooth_task(sd: &'static Softdevice) {
info!("My address: {:?}", ble::get_address(sd));