mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-10 18:31:01 +00:00
Merge branch 'master' into dev-v2.1.0
This commit is contained in:
@@ -236,7 +236,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();
|
||||
|
||||
Reference in New Issue
Block a user