Nordic stack and drivers for the mbed BLE API
Fork of nRF51822 by
Diff: TARGET_NRF5/source/nRF5xGap.cpp
- Revision:
- 639:823cb91436a8
- Parent:
- 638:c90ae1400bf2
diff -r c90ae1400bf2 -r 823cb91436a8 TARGET_NRF5/source/nRF5xGap.cpp --- a/TARGET_NRF5/source/nRF5xGap.cpp Wed Sep 14 14:39:43 2016 +0100 +++ b/TARGET_NRF5/source/nRF5xGap.cpp Tue Mar 28 19:09:24 2017 +0000 @@ -26,6 +26,8 @@ #include "ble_advdata.h" #include "nrf_ble_hci.h" +#include "config.h" + void radioNotificationStaticCallback(bool param) { nRF5xGap &gap = (nRF5xGap &) nRF5xn::Instance(BLE::DEFAULT_INSTANCE).getGap(); gap.processRadioNotificationEvent(param); @@ -195,6 +197,9 @@ adv_para.p_whitelist = &whitelist; adv_para.interval = params.getIntervalInADVUnits(); // advertising interval (in units of 0.625 ms) adv_para.timeout = params.getTimeout(); + adv_para.channel_mask.ch_37_off = CH_37_OFF; + adv_para.channel_mask.ch_38_off = CH_38_OFF; + adv_para.channel_mask.ch_39_off = CH_39_OFF; uint32_t err = sd_ble_gap_adv_start(&adv_para); switch(err) {