Add backup, restore, clearing of 'fixedPrice'

This commit is contained in:
david-beinder
2023-04-28 22:32:44 +02:00
parent c1701c8ee9
commit a3dcd2cfb2
3 changed files with 5 additions and 0 deletions

View File

@@ -1967,6 +1967,9 @@ void configFileParse() {
} else if(strncmp_P(buf, PSTR("entsoeMultiplier "), 17) == 0) {
if(!lEntsoe) { config.getEntsoeConfig(entsoe); lEntsoe = true; };
entsoe.multiplier = String(buf+17).toFloat() * 1000;
} else if(strncmp_P(buf, PSTR("entsoeFixedPrice "), 17) == 0) {
if(!lEntsoe) { config.getEntsoeConfig(entsoe); lEntsoe = true; };
entsoe.fixedPrice = String(buf+17).toFloat() * 1000;
} else if(strncmp_P(buf, PSTR("thresholds "), 11) == 0) {
if(!lEac) { config.getEnergyAccountingConfig(eac); lEac = true; };
int i = 0;