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

This commit is contained in:
yinqingzhao
2025-01-08 10:27:36 +08:00
parent 57bee3ec96
commit 26e77f9a38
9 changed files with 44 additions and 8 deletions

View File

@@ -81,7 +81,7 @@ void app_main(void)
esp_console_register_help_command();
register_system_common();
register_system_sleep();
#if SOC_WIFI_SUPPORTED
#if CONFIG_ESP_WIFI_ENABLED
register_wifi();
#endif
register_nvs();