]> granicus.if.org Git - esp-idf/commitdiff
esp32: esp_wifi.h: Replace a non-working #error statement with a working _Static_asse...
authorEdmund Huber <me@ehuber.info>
Sun, 19 Mar 2017 18:34:35 +0000 (11:34 -0700)
committerAngus Gratton <angus@espressif.com>
Wed, 22 Mar 2017 07:01:40 +0000 (15:01 +0800)
Merges #440 https://github.com/espressif/esp-idf/pull/440

components/esp32/include/esp_wifi.h

index 05a686a361a1f13eb998f0446ec749af505ed0ce..a9b072200fd6c741c366d7d86e7e5a82ffb88428 100755 (executable)
@@ -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
 
 /**