From 0aab67f0aa10bb6a146e4fb3f35227763b83aee6 Mon Sep 17 00:00:00 2001 From: Edmund Huber Date: Sun, 19 Mar 2017 11:34:35 -0700 Subject: [PATCH] esp32: esp_wifi.h: Replace a non-working #error statement with a working _Static_assert statement Merges #440 https://github.com/espressif/esp-idf/pull/440 --- components/esp32/include/esp_wifi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /** -- 2.40.0