mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-26 04:11:18 +00:00
Fixed build errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ AmsData* PassiveMeterCommunicator::getData(AmsData& meterState) {
|
||||
data = new IEC6205675(payload, meterState.getMeterType(), &meterConfig, ctx, meterState);
|
||||
}
|
||||
} else if(ctx.type == DATA_TAG_DSMR) {
|
||||
data = new IEC6205621(payload, tz);
|
||||
data = new IEC6205621(payload, tz, &meterConfig);
|
||||
}
|
||||
len = 0;
|
||||
if(data != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user