mirror of https://github.com/ARMmbed/mbed-os.git
connectable is a feature not role
parent
b60eaf14a2
commit
bed567825f
|
@ -6,7 +6,7 @@
|
|||
#endif
|
||||
|
||||
#if BLE_ROLE_PERIPHERAL BLE_ROLE_CENTRAL)
|
||||
#define BLE_ROLE_CONNECTABLE 1
|
||||
#define BLE_FEATURE_CONNECTABLE 1
|
||||
#endif
|
||||
|
||||
#if (BLE_FEATURE_GATT_CLIENT) || (BLE_FEATURE_GATT_SERVER)
|
||||
|
|
|
@ -403,7 +403,7 @@ void BLE::stack_setup()
|
|||
DmScanInit();
|
||||
#endif
|
||||
|
||||
#if BLE_ROLE_CONNECTABLE
|
||||
#if BLE_FEATURE_CONNECTABLE
|
||||
DmConnInit();
|
||||
#endif
|
||||
|
||||
|
@ -438,7 +438,7 @@ void BLE::stack_setup()
|
|||
L2cSlaveHandlerInit(handlerId);
|
||||
#endif
|
||||
|
||||
#if BLE_ROLE_CONNECTABLE
|
||||
#if BLE_FEATURE_CONNECTABLE
|
||||
L2cInit();
|
||||
#endif
|
||||
|
||||
|
@ -493,7 +493,7 @@ void BLE::stack_setup()
|
|||
HciSetMaxRxAclLen(100);
|
||||
|
||||
DmRegister(BLE::device_manager_cb);
|
||||
#if BLE_ROLE_CONNECTABLE
|
||||
#if BLE_FEATURE_CONNECTABLE
|
||||
DmConnRegister(DM_CLIENT_ID_APP, BLE::device_manager_cb);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue