File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2416,12 +2416,12 @@ INCLUDE_FILE_PATTERNS =
24162416# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24172417
24182418PREDEFINED = _DOXYGEN_ \
2419- CONFIG_BT_ENABLED \
2420- CONFIG_BT_NIMBLE_ROLE_CENTRAL \
2421- CONFIG_BT_NIMBLE_ROLE_OBSERVER \
2422- CONFIG_BT_NIMBLE_ROLE_PERIPHERAL \
2423- CONFIG_BT_NIMBLE_ROLE_BROADCASTER \
2424- CONFIG_BT_NIMBLE_EXT_ADV
2419+ CONFIG_BT_NIMBLE_ENABLED=1 \
2420+ MYNEWT_VAL_BLE_ROLE_CENTRAL=1 \
2421+ MYNEWT_VAL_BLE_ROLE_OBSERVER=1 \
2422+ MYNEWT_VAL_BLE_ROLE_PERIPHERAL=1 \
2423+ MYNEWT_VAL_BLE_ROLE_BROADCASTER=1 \
2424+ MYNEWT_VAL_BLE_EXT_ADV=1
24252425
24262426# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24272427# tag can be used to specify a list of macro names that should be expanded. The
Original file line number Diff line number Diff line change @@ -909,7 +909,7 @@ bool NimBLEDevice::init(const std::string& deviceName) {
909909 bt_cfg.mode = ESP_BT_MODE_BLE;
910910 bt_cfg.ble_max_conn = MYNEWT_VAL (BLE_MAX_CONNECTIONS);
911911# elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
912- bt_cfg.ble_max_act = MYNEWT_VAL (BLE_MAX_CONNECTIONS);
912+ bt_cfg.ble_max_act = MYNEWT_VAL (BLE_MAX_CONNECTIONS) + MYNEWT_VAL (BLE_ROLE_BROADCASTER) + MYNEWT_VAL (BLE_ROLE_OBSERVER) ;
913913# else
914914 bt_cfg.nimble_max_connections = MYNEWT_VAL (BLE_MAX_CONNECTIONS);
915915# endif
You can’t perform that action at this time.
0 commit comments