Commit 16e0c914 authored by Eric Duminil's avatar Eric Duminil
Browse files

Check that AMPEL_WIFI is defined and not empty

parent 87a72e3c
Pipeline #5795 passed with stage
in 2 minutes and 41 seconds
......@@ -13,7 +13,7 @@
#include "wifi_util.h"
#include "mqtt.h"
#ifdef AMPEL_HTTP
#if (AMPEL_HTTP==1) //TODO: Is it still needed?
# include "web_server.h"
#endif
......
......@@ -122,7 +122,7 @@ void setup() {
if (config::wifi_active) {
wifi::defineCommands();
# ifdef AMPEL_HTTP
# if (AMPEL_HTTP==1)
web_server::definePages();
//TODO: Rename. Not just web_server
// web_server::initialize();
......
......@@ -11,6 +11,11 @@
# error Missing config.h file. Please copy config.public.h to config.h.
#endif
// Make sure AMPEL_WIFI is defined and not empty:
#if !defined(AMPEL_WIFI) || (7-AMPEL_WIFI-7 == 14)
# error config.h has a new structure, please update it from config.public.h (e.g. AMPEL_WIFI should be set to true or false)
#endif
#include "util.h"
#include "sensor_console.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment