diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-01-27 18:44:27 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-01-27 18:44:27 +0100 |
commit | 9670c1cc1829a98dce270127ffed8a795ade2ec6 (patch) | |
tree | aeb6949c103dc13b9d04b01b5ddc3a3e773ade4b | |
parent | 3d11b70e5e64df4a583238ce37647e531930668a (diff) | |
download | nrf-softdevice-9670c1cc1829a98dce270127ffed8a795ade2ec6.zip |
Fix example build
-rw-r--r-- | examples/src/bin/ble_peripheral_onoff.rs | 1 | ||||
-rw-r--r-- | nrf-softdevice/src/ble/peripheral.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs index 3ccd110..9fdc8c0 100644 --- a/examples/src/bin/ble_peripheral_onoff.rs +++ b/examples/src/bin/ble_peripheral_onoff.rs @@ -11,7 +11,6 @@ use core::mem; use cortex_m_rt::entry; use defmt::*; use embassy::executor::Executor; -use embassy::traits::gpio::WaitForLow; use embassy::util::Forever; use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; use embassy_nrf::interrupt::Priority; diff --git a/nrf-softdevice/src/ble/peripheral.rs b/nrf-softdevice/src/ble/peripheral.rs index c3e920b..185ab86 100644 --- a/nrf-softdevice/src/ble/peripheral.rs +++ b/nrf-softdevice/src/ble/peripheral.rs @@ -185,7 +185,6 @@ static mut ADV_HANDLE: u8 = raw::BLE_GAP_ADV_SET_HANDLE_NOT_SET as u8; pub(crate) static ADV_PORTAL: Portal<*const raw::ble_evt_t> = Portal::new(); fn start_adv(adv: RawAdvertisement<'_>, config: &Config) -> Result<(), AdvertiseError> { - // TODO make these configurable, only the right params based on type? let mut adv_params: raw::ble_gap_adv_params_t = unsafe { mem::zeroed() }; adv_params.properties.type_ = adv.kind; adv_params.primary_phy = config.primary_phy as u8; |