Skip to content

Commit 47390fc

Browse files
committed
esp_peripherals: Check if blufi enabled around call to ble_config_stop
1 parent 49e63cd commit 47390fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_peripherals/periph_wifi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ esp_err_t periph_wifi_wait_for_connected(esp_periph_handle_t periph, TickType_t
8787
if (connected_bit & CONNECTED_BIT) {
8888
return ESP_OK;
8989
}
90-
#if defined(CONFIG_BTDM_CTRL_MODE_BLE_ONLY) || defined(CONFIG_BTDM_CTRL_MODE_BTDM)
90+
#if defined(CONFIG_BT_BLE_BLUFI_ENABLE)
9191
if (periph_wifi->config_mode == WIFI_CONFIG_BLUEFI) {
9292
ble_config_stop();
9393
}

0 commit comments

Comments
 (0)