From 37ce3566bf8df675c8dc5bb23f688498346b931a Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Mon, 13 Sep 2021 08:07:03 +0200 Subject: [PATCH] Fixed config clear --- src/AmsConfiguration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AmsConfiguration.cpp b/src/AmsConfiguration.cpp index ca3b54d9..5f5d83b9 100644 --- a/src/AmsConfiguration.cpp +++ b/src/AmsConfiguration.cpp @@ -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();