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

esp_peripherals: Check if blufi enabled around call to ble_config_start or ble_config_stop (AUD-4749) #1040

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions components/esp_peripherals/periph_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ esp_err_t periph_wifi_wait_for_connected(esp_periph_handle_t periph, TickType_t
if (connected_bit & CONNECTED_BIT) {
return ESP_OK;
}
#if defined(CONFIG_BTDM_CTRL_MODE_BLE_ONLY) || defined(CONFIG_BTDM_CTRL_MODE_BTDM)
#if defined(CONFIG_BT_BLE_BLUFI_ENABLE)
if (periph_wifi->config_mode == WIFI_CONFIG_BLUEFI) {
ble_config_stop();
ftab marked this conversation as resolved.
Show resolved Hide resolved
}
Expand Down Expand Up @@ -256,7 +256,7 @@ esp_err_t periph_wifi_config_start(esp_periph_handle_t periph, periph_wifi_confi
//todo : add wps
return ESP_OK;
} else if (mode == WIFI_CONFIG_BLUEFI) {
#if defined(CONFIG_BTDM_CTRL_MODE_BLE_ONLY) || defined(CONFIG_BTDM_CTRL_MODE_BTDM)
#if defined(CONFIG_BT_BLE_BLUFI_ENABLE)
ble_config_start(periph);
#endif
return ESP_OK;
Expand Down