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 /nrf-softdevice | |
parent | 3d11b70e5e64df4a583238ce37647e531930668a (diff) | |
download | nrf-softdevice-9670c1cc1829a98dce270127ffed8a795ade2ec6.zip |
Fix example build
Diffstat (limited to 'nrf-softdevice')
-rw-r--r-- | nrf-softdevice/src/ble/peripheral.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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; |