From efa5e46b917bf750665a12711bd0e8f18c412cab Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 3 Aug 2022 16:19:04 +0200 Subject: Update Embassy (for the executor/util crate split) --- examples/src/bin/ble_l2cap_central.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/src/bin/ble_l2cap_central.rs') diff --git a/examples/src/bin/ble_l2cap_central.rs b/examples/src/bin/ble_l2cap_central.rs index f344fa8..9b2cb5a 100644 --- a/examples/src/bin/ble_l2cap_central.rs +++ b/examples/src/bin/ble_l2cap_central.rs @@ -10,8 +10,8 @@ use core::{mem, slice}; 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::l2cap::Packet as _; use nrf_softdevice::ble::{central, l2cap, Address, TxPower}; use nrf_softdevice::{raw, Softdevice}; @@ -20,12 +20,12 @@ static EXECUTOR: Forever = 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 ble_central_task(sd: &'static Softdevice) { info!("Scanning for peer..."); -- cgit v1.2.3