feat(wifi): avoid compiling components related to wifi when wifi is not supported

This commit is contained in:
yinqingzhao
2024-11-06 15:17:31 +08:00
parent 9240757145
commit a34f1eb6f9
11 changed files with 43 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
@@ -24,11 +24,6 @@
#include "esp_event.h"
#include "cmd_wifi.h"
/**
* This component will be supported using esp_wifi_remote
*/
#if CONFIG_SOC_WIFI_SUPPORTED
#define JOIN_TIMEOUT_MS (10000)
static EventGroupHandle_t wifi_event_group;
@@ -139,5 +134,3 @@ void register_wifi(void)
ESP_ERROR_CHECK( esp_console_cmd_register(&join_cmd) );
}
#endif // CONFIG_SOC_WIFI_SUPPORTED