Skip to content

Commit 9566af6

Browse files
committed
BLE - Fix initialization of extended advertising modules.
1 parent 6a3f3d1 commit 9566af6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,18 @@ void BLE::processEvents()
287287
#if BLE_FEATURE_EXTENDED_ADVERTISING
288288
// initialize extended module if supported
289289
if (HciGetLeSupFeat() & HCI_LE_SUP_FEAT_LE_EXT_ADV) {
290+
#if BLE_ROLE_BROADCASTER
290291
DmExtAdvInit();
292+
#endif // BLE_ROLE_BROADCASTER
293+
#if BLE_ROLE_OBSERVER
291294
DmExtScanInit();
295+
#endif // BLE_ROLE_OBSERVER
296+
#if BLE_ROLE_CENTRAL
292297
DmExtConnMasterInit();
298+
#endif // BLE_ROLE_CENTRAL
299+
#if BLE_ROLE_PERIPHERAL
293300
DmExtConnSlaveInit();
301+
#endif // BLE_ROLE_PERIPHERAL
294302
}
295303
#endif // BLE_FEATURE_EXTENDED_ADVERTISING
296304
#if BLE_FEATURE_GATT_SERVER

0 commit comments

Comments
 (0)