component/bt: bugfix for mismatch of controller mode in sdkconfig.defaults and source code in some examples
This commit is contained in:
parent
9844779553
commit
37269dbbca
3 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ void app_main()
|
||||||
return;
|
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__);
|
ESP_LOGE(BT_AV_TAG, "%s enable controller failed\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -278,7 +278,7 @@ void app_main()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
|
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
ESP_LOGE(HID_DEMO_TAG, "%s enable controller failed\n", __func__);
|
ESP_LOGE(HID_DEMO_TAG, "%s enable controller failed\n", __func__);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -285,7 +285,7 @@ void app_main()
|
||||||
return;
|
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));
|
ESP_LOGE(GAP_TAG, "%s enable controller failed: %s\n", __func__, esp_err_to_name(ret));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue