File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -866,11 +866,13 @@ bool NimBLEDevice::init(const std::string& deviceName) {
866
866
867
867
# if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) | !defined(CONFIG_NIMBLE_CPP_IDF)
868
868
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT ();
869
- # if defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
870
- bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE;
871
- # else
869
+ # if defined(CONFIG_IDF_TARGET_ESP32)
872
870
bt_cfg.mode = ESP_BT_MODE_BLE;
873
871
bt_cfg.ble_max_conn = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
872
+ # elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
873
+ bt_cfg.ble_max_act = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
874
+ # else
875
+ bt_cfg.nimble_max_connections = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
874
876
# endif
875
877
876
878
# ifdef CONFIG_BTDM_BLE_SCAN_DUPL
You can’t perform that action at this time.
0 commit comments