From d4ec0d81fc0937ab6335cb8e56c9d8356c70d4c1 Mon Sep 17 00:00:00 2001 From: Dennis Field Date: Wed, 19 Jul 2023 12:14:53 -0400 Subject: [PATCH] esp_peripherals: Check if blufi enabled around call to ble_config_start or ble_config_stop --- components/esp_peripherals/periph_wifi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_peripherals/periph_wifi.c b/components/esp_peripherals/periph_wifi.c index 7d55d3f33..e9db13edc 100644 --- a/components/esp_peripherals/periph_wifi.c +++ b/components/esp_peripherals/periph_wifi.c @@ -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(); } @@ -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;