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

This commit is contained in:
yinqingzhao
2025-01-08 15:40:42 +08:00
parent 53a526e52d
commit 44fd1e0d3a
8 changed files with 43 additions and 5 deletions

View File

@@ -168,7 +168,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();