Skip to content

Commit 6e5414b

Browse files
committed
Merge branch 'bugfix/add_bluedroid_support_for_esp_ip' into 'master'
fix(wifi_prov): Add support for ESP IP controller chips in bluedroid Closes MEGH-5841 See merge request espressif/esp-idf!32465
2 parents 1fa27cb + 338d9f4 commit 6e5414b

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
@@ -241,14 +241,15 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
241241
return ret;
242242
}
243243

244-
#ifdef CONFIG_BTDM_CTRL_MODE_BTDM
245-
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
246-
#elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF
247-
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
248-
#else
244+
#ifdef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
249245
ESP_LOGE(TAG, "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig");
250246
return ESP_FAIL;
247+
#elif CONFIG_BTDM_CTRL_MODE_BTDM
248+
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
249+
#else //For all other chips supporting BLE Only
250+
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
251251
#endif
252+
252253
if (ret) {
253254
ESP_LOGE(TAG, "%s enable controller failed %d", __func__, ret);
254255
return ret;

0 commit comments

Comments
 (0)