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;
}
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;
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;
}