Fix for unstable ESP8266 when debug is disabled

This commit is contained in:
Gunnar Skjold
2022-02-20 10:51:19 +01:00
parent 6e9e988ff0
commit 7e41168606
4 changed files with 10 additions and 15 deletions

View File

@@ -233,7 +233,7 @@ bool AmsConfiguration::getDebugConfig(DebugConfig& config) {
bool AmsConfiguration::setDebugConfig(DebugConfig& config) {
if(!config.serial && !config.telnet)
config.level = 5; // Force error level when debug is disabled
config.level = 4; // Force warning level when debug is disabled
EEPROM.begin(EEPROM_SIZE);
EEPROM.put(CONFIG_DEBUG_START, config);
bool ret = EEPROM.commit();