Skip to content

Commit

Permalink
esp_peripherals: Check if blufi enabled around call to ble_config_stop
Browse files Browse the repository at this point in the history
  • Loading branch information
ftab committed Jul 19, 2023
1 parent 49e63cd commit 47390fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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();
}
Expand Down

0 comments on commit 47390fc

Please sign in to comment.