More v2.2

This commit is contained in:
Gunnar Skjold
2022-11-23 20:52:37 +01:00
parent 902e43979b
commit d4d9d2224f
21 changed files with 401 additions and 157 deletions

View File

@@ -582,7 +582,6 @@ void AmsConfiguration::clear() {
strcpy(sys.country, "");
EEPROM.put(CONFIG_SYSTEM_START, sys);
MeterConfig meter;
clearMeter(meter);
EEPROM.put(CONFIG_METER_START, meter);
@@ -615,6 +614,10 @@ void AmsConfiguration::clear() {
clearEnergyAccountingConfig(eac);
EEPROM.put(CONFIG_ENERGYACCOUNTING_START, eac);
DebugConfig debug;
clearDebug(debug);
EEPROM.put(CONFIG_DEBUG_START, debug);
EEPROM.put(EEPROM_CONFIG_ADDRESS, EEPROM_CLEARED_INDICATOR);
EEPROM.commit();
EEPROM.end();