connectable is a feature not role

pull/9790/head
paul-szczepanek-arm 2019-02-06 16:10:39 +00:00 committed by Vincent Coubard
parent b60eaf14a2
commit bed567825f
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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