Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bluetooth_service] Added BLE And BTDM Support (AUD-1505) #374

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Updated mistakes.
  • Loading branch information
Tarun-Narain authored Apr 11, 2020
commit 80f72088c15d69d567e69e85f1c165c13cd96e30
8 changes: 4 additions & 4 deletions components/bluetooth_service/bluetooth_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ esp_err_t bluetooth_service_start(bluetooth_service_cfg_t *config)
g_bt_service = calloc(1, sizeof(bluetooth_service_t));
AUDIO_MEM_CHECK(TAG, g_bt_service, return ESP_ERR_NO_MEM);

#if define(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY)
#if defined(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY)
ESP_ERROR_CHECK(esp_bt_controller_mem_release(ESP_BT_MODE_BLE));
#endif

Expand All @@ -445,19 +445,19 @@ esp_err_t bluetooth_service_start(bluetooth_service_cfg_t *config)
AUDIO_ERROR(TAG, "initialize controller failed");
return ESP_FAIL;
}
#if define(CONFIG_BTDM_CONTROLLER_MODE_BTDM)
#if defined(CONFIG_BTDM_CONTROLLER_MODE_BTDM)
if (esp_bt_controller_enable(ESP_BT_MODE_BTDM) != ESP_OK) {
AUDIO_ERROR(TAG, "enable controller (BTDM Mode) failed");
return ESP_FAIL;
}
#endif
#if define(CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY)
#if defined(CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY)
if (esp_bt_controller_enable(ESP_BT_MODE_BLE) != ESP_OK) {
AUDIO_ERROR(TAG, "enable controller (BLE Only) failed");
return ESP_FAIL;
}
#endif
#if define(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY)
#if defined(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY)
if (esp_bt_controller_enable(ESP_BT_MODE_CLASSIC_BT) != ESP_OK) {
AUDIO_ERROR(TAG, "enable controller (BR_EDR Mode) failed");
return ESP_FAIL;
Expand Down