Skip to content

Commit d4ec0d8

Browse files
committed
esp_peripherals: Check if blufi enabled around call to ble_config_start or ble_config_stop
1 parent 49e63cd commit d4ec0d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/esp_peripherals/periph_wifi.c

Lines changed: 2 additions & 2 deletions
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
}
@@ -256,7 +256,7 @@ esp_err_t periph_wifi_config_start(esp_periph_handle_t periph, periph_wifi_confi
256256
//todo : add wps
257257
return ESP_OK;
258258
} else if (mode == WIFI_CONFIG_BLUEFI) {
259-
#if defined(CONFIG_BTDM_CTRL_MODE_BLE_ONLY) || defined(CONFIG_BTDM_CTRL_MODE_BTDM)
259+
#if defined(CONFIG_BT_BLE_BLUFI_ENABLE)
260260
ble_config_start(periph);
261261
#endif
262262
return ESP_OK;

0 commit comments

Comments
 (0)