mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(wifi_prov): Add support for ESP IP controller chips in bluedroid
This commit is contained in:
parent
0b864f0ab7
commit
d8004c197d
@ -235,14 +235,15 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BTDM_CTRL_MODE_BTDM
|
#ifdef CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY
|
||||||
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
|
|
||||||
#elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF
|
|
||||||
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
|
|
||||||
#else
|
|
||||||
ESP_LOGE(TAG, "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig");
|
ESP_LOGE(TAG, "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig");
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
|
#elif CONFIG_BTDM_CTRL_MODE_BTDM
|
||||||
|
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
|
||||||
|
#else //For all other chips supporting BLE Only
|
||||||
|
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
ESP_LOGE(TAG, "%s enable controller failed %d", __func__, ret);
|
ESP_LOGE(TAG, "%s enable controller failed %d", __func__, ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user