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
pull/264/merge
Edmund Huber 2017-03-19 11:34:35 -07:00 zatwierdzone przez Angus Gratton
rodzic 6a58e173b8
commit 0aab67f0aa
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
/**