Skip to content

Commit

Permalink
replace a non-working #error statement with a working _Static_assert …
Browse files Browse the repository at this point in the history
…statement
  • Loading branch information
edmund-huber committed Mar 19, 2017
1 parent 57486a1 commit 2276c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp32/include/esp_wifi.h
Expand Up @@ -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

/**
Expand Down

0 comments on commit 2276c2e

Please sign in to comment.