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 @@ -891,11 +891,13 @@ bool NimBLEDevice::init(const std::string& deviceName) {
891891
892892# if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) | !defined(CONFIG_NIMBLE_CPP_IDF)
893893 esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT ();
894- # if defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
895- bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE;
896- # else
894+ # if defined(CONFIG_IDF_TARGET_ESP32)
897895 bt_cfg.mode = ESP_BT_MODE_BLE;
898896 bt_cfg.ble_max_conn = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
897+ # elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
898+ bt_cfg.ble_max_act = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
899+ # else
900+ bt_cfg.nimble_max_connections = CONFIG_BT_NIMBLE_MAX_CONNECTIONS;
899901# endif
900902
901903# ifdef CONFIG_BTDM_BLE_SCAN_DUPL
You can’t perform that action at this time.
0 commit comments