Fixed config clear

This commit is contained in:
Gunnar Skjold 2021-09-13 08:07:03 +02:00
parent 606bac100a
commit 37ce3566bf

View File

@ -496,11 +496,11 @@ void AmsConfiguration::clear() {
NtpConfig ntp;
clearNtp(ntp);
EEPROM.put(CONFIG_NTP_START, domo);
EEPROM.put(CONFIG_NTP_START, ntp);
EntsoeConfig entsoe;
clearEntsoe(entsoe);
EEPROM.put(CONFIG_ENTSOE_START, domo);
EEPROM.put(CONFIG_ENTSOE_START, entsoe);
EEPROM.put(EEPROM_CONFIG_ADDRESS, -1);
EEPROM.commit();