Merge branch 'bugfix/bluedriod_esp32c3' into 'master'

ESP32C3: Fix for provisioning failure with ble transport mode and bluedriod stack

See merge request espressif/esp-idf!14124
This commit is contained in:
Hrishikesh Dhayagude 2021-07-23 08:33:22 +00:00
commit ab970ac0cf
3 changed files with 17 additions and 1 deletions

View File

@ -228,7 +228,7 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
#ifdef CONFIG_BTDM_CTRL_MODE_BTDM
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
#elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY
#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");

View File

@ -42,4 +42,12 @@ menu "Example Configuration"
default y
help
Show the QR code for provisioning.
config EXAMPLE_PROV_USING_BLUEDROID
bool
depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
select BT_BLE_42_FEATURES_SUPPORTED
default y
help
This enables BLE 4.2 features for Bluedroid.
endmenu

View File

@ -51,4 +51,12 @@ menu "Example Configuration"
default y
help
Show the QR code for provisioning.
config EXAMPLE_PROV_USING_BLUEDROID
bool
depends on (BT_BLUEDROID_ENABLED && (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3))
select BT_BLE_42_FEATURES_SUPPORTED
default y
help
This enables BLE 4.2 features for Bluedroid.
endmenu