From ebfb06efcd20343101d8329866d5ae19249e035f Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Tue, 15 Feb 2022 17:33:34 +0100 Subject: [PATCH] Custom ampel iotwebconf settings --- .../src/lib/IotWebConf/src/IotWebConfSettings.h | 4 ++++ .../src/lib/IotWebConf/src/custom_ampel_iotwebconf.h | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ampel-firmware/src/lib/IotWebConf/src/custom_ampel_iotwebconf.h diff --git a/ampel-firmware/src/lib/IotWebConf/src/IotWebConfSettings.h b/ampel-firmware/src/lib/IotWebConf/src/IotWebConfSettings.h index 430137d..f4850bf 100644 --- a/ampel-firmware/src/lib/IotWebConf/src/IotWebConfSettings.h +++ b/ampel-firmware/src/lib/IotWebConf/src/IotWebConfSettings.h @@ -12,6 +12,10 @@ #ifndef IotWebConfSettings_h #define IotWebConfSettings_h +#if __has_include("custom_ampel_iotwebconf.h") + #include "custom_ampel_iotwebconf.h" +#endif + // -- We might want to place the config in the EEPROM in an offset. #ifndef IOTWEBCONF_CONFIG_START # define IOTWEBCONF_CONFIG_START 0 diff --git a/ampel-firmware/src/lib/IotWebConf/src/custom_ampel_iotwebconf.h b/ampel-firmware/src/lib/IotWebConf/src/custom_ampel_iotwebconf.h new file mode 100644 index 0000000..0be304f --- /dev/null +++ b/ampel-firmware/src/lib/IotWebConf/src/custom_ampel_iotwebconf.h @@ -0,0 +1,12 @@ +#ifndef CustomAmpelIotWebConfSettings_h +#define CustomAmpelIotWebConfSettings_h +/***************************************/ +/**** CUSTOM AMPEL CODE ****************/ + +// Disable DEBUG, in order to save some space, at least on ESP8266 + +#if defined(ESP8266) +#define IOTWEBCONF_DEBUG_DISABLED +#endif + +#endif \ No newline at end of file -- GitLab