Skip to content

Commit 59f8a48

Browse files
committed
Merge branch 'bugfix/add_bluedroid_support_for_esp_ip_v5.2' into 'release/v5.2'
fix(wifi_prov): Add support for ESP IP controller chips in bluedroid (v5.2) See merge request espressif/esp-idf!33178
2 parents c143e68 + d8004c1 commit 59f8a48

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

components/protocomm/src/simple_ble/simple_ble.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,15 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
235235
return ret;
236236
}
237237

238-
#ifdef CONFIG_BTDM_CTRL_MODE_BTDM
239-
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
240-
#elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF
241-
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
242-
#else
238+
#ifdef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
243239
ESP_LOGE(TAG, "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig");
244240
return ESP_FAIL;
241+
#elif CONFIG_BTDM_CTRL_MODE_BTDM
242+
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
243+
#else //For all other chips supporting BLE Only
244+
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
245245
#endif
246+
246247
if (ret) {
247248
ESP_LOGE(TAG, "%s enable controller failed %d", __func__, ret);
248249
return ret;

0 commit comments

Comments
 (0)