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 393b7410a6
commit f40c2cbc72
11 changed files with 43 additions and 27 deletions

View File

@@ -97,7 +97,7 @@ void app_main(void)
#if SOC_DEEP_SLEEP_SUPPORTED
register_system_deep_sleep();
#endif
#if SOC_WIFI_SUPPORTED
#if (CONFIG_ESP_WIFI_ENABLED || CONFIG_ESP_HOST_WIFI_ENABLED)
register_wifi();
#endif
register_nvs();