Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
16e0c914
Commit
16e0c914
authored
Feb 11, 2022
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.h
View file @
16e0c914
...
...
@@ -13,7 +13,7 @@
#include
"wifi_util.h"
#include
"mqtt.h"
#if
def
AMPEL_HTTP
#if
(
AMPEL_HTTP
==1) //TODO: Is it still needed?
# include "web_server.h"
#endif
...
...
ampel-firmware/ampel-firmware.ino
View file @
16e0c914
...
...
@@ -122,7 +122,7 @@ void setup() {
if
(
config
::
wifi_active
)
{
wifi
::
defineCommands
();
# if
def
AMPEL_HTTP
# if
(
AMPEL_HTTP
==1)
web_server
::
definePages
();
//TODO: Rename. Not just web_server
// web_server::initialize();
...
...
ampel-firmware/web_config.cpp
View file @
16e0c914
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment