diff --git a/components/esp32/include/esp_wifi.h b/components/esp32/include/esp_wifi.h index 05a686a361..a9b072200f 100755 --- a/components/esp32/include/esp_wifi.h +++ b/components/esp32/include/esp_wifi.h @@ -135,7 +135,7 @@ typedef struct { .magic = WIFI_INIT_CONFIG_MAGIC\ }; #else -#define WIFI_INIT_CONFIG_DEFAULT #error Wifi is disabled in config, WIFI_INIT_CONFIG_DEFAULT will not work +#define WIFI_INIT_CONFIG_DEFAULT() {0}; _Static_assert(0, "please enable wifi in menuconfig to use esp_wifi.h"); #endif /**