Fixed build errors

This commit is contained in:
Gunnar Skjold
2023-12-25 07:44:42 +01:00
parent 50de5abf93
commit fa87cfaa61
5 changed files with 79 additions and 84 deletions

View File

@@ -1311,8 +1311,8 @@ void MQTT_connect() {
if(mqttHandler != NULL) {
mqttHandler->connect();
mqttHandler->publishSystem(&hw, ps, &ea);
if(eapi != NULL && eapi->getValueForHour(0) != ENTSOE_NO_VALUE) {
mqttHandler->publishPrices(eapi);
if(ps != NULL && ps->getValueForHour(0) != PRICE_NO_VALUE) {
mqttHandler->publishPrices(ps);
}
}
}