component/bt: bugfix for mismatch of controller mode in sdkconfig.defaults and source code in some examples

This commit is contained in:
wangmengyang 2018-09-11 11:18:13 +08:00
parent 9844779553
commit 37269dbbca
3 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ void app_main()
return;
}
if (esp_bt_controller_enable(ESP_BT_MODE_BTDM) != ESP_OK) {
if (esp_bt_controller_enable(ESP_BT_MODE_CLASSIC_BT) != ESP_OK) {
ESP_LOGE(BT_AV_TAG, "%s enable controller failed\n", __func__);
return;
}

View file

@ -278,7 +278,7 @@ void app_main()
return;
}
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
if (ret) {
ESP_LOGE(HID_DEMO_TAG, "%s enable controller failed\n", __func__);
return;

View file

@ -285,7 +285,7 @@ void app_main()
return;
}
if ((ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM)) != ESP_OK) {
if ((ret = esp_bt_controller_enable(ESP_BT_MODE_CLASSIC_BT)) != ESP_OK) {
ESP_LOGE(GAP_TAG, "%s enable controller failed: %s\n", __func__, esp_err_to_name(ret));
return;
}