diff --git a/ampel-firmware/src/lib/IotWebConf/src/IotWebConfSettings.h b/ampel-firmware/src/lib/IotWebConf/src/IotWebConfSettings.h index 430137d8f69c9943c831b8ea998b13ae13c7d23c..f4850bf9596a2e1ccafa81cef559f4ab83a466e5 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 0000000000000000000000000000000000000000..0be304fe7e6554fce77e8638efdd71470c5e7a70 --- /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