Some changes for fetching prices from amshub

This commit is contained in:
Gunnar Skjold
2022-12-02 19:24:53 +01:00
parent eed35b7bbc
commit 0927cab8e2
6 changed files with 12 additions and 5 deletions

View File

@@ -868,6 +868,11 @@ bool AmsConfiguration::relocateConfig96() {
strcpy(ntp.server, ntp96.server);
EEPROM.put(CONFIG_NTP_START, ntp);
EntsoeConfig entsoe;
EEPROM.get(CONFIG_ENTSOE_START, entsoe);
entsoe.enabled = strlen(entsoe.token) > 0;
EEPROM.put(CONFIG_ENTSOE_START, entsoe);
EEPROM.put(EEPROM_CONFIG_ADDRESS, 100);
bool ret = EEPROM.commit();
EEPROM.end();