Fixed segfault when enabling verbose debug with fixed price

This commit is contained in:
Gunnar Skjold
2023-05-02 10:20:54 +02:00
parent d729d0c5bd
commit eea1782280
3 changed files with 8 additions and 6 deletions

View File

@@ -186,7 +186,7 @@ void setup() {
ws.setEntsoeApi(eapi);
}
ws.setPriceSettings(entsoe.area, entsoe.currency);
ea.setFixedPrice(entsoe.fixedPrice / 1000.0);
ea.setFixedPrice(entsoe.fixedPrice / 1000.0, entsoe.currency);
bool shared = false;
config.getMeterConfig(meterConfig);
Serial.flush();
@@ -655,7 +655,7 @@ void handlePriceApi(unsigned long now) {
}
ws.setPriceSettings(entsoe.area, entsoe.currency);
config.ackEntsoeChange();
ea.setFixedPrice(entsoe.fixedPrice / 1000.0);
ea.setFixedPrice(entsoe.fixedPrice / 1000.0, entsoe.currency);
}
}