Fixed update of meter state with list type 4

This commit is contained in:
Gunnar Skjold 2022-03-16 12:46:59 +01:00
parent 42a627e32e
commit 53296ccf42

View File

@ -40,11 +40,12 @@ void AmsData::apply(AmsData& other) {
if(other.getListType() > this->listType)
this->listType = other.getListType();
switch(other.getListType()) {
case 3:
case 4:
this->powerFactor = other.getPowerFactor();
this->l1PowerFactor = other.getL1PowerFactor();
this->l2PowerFactor = other.getL2PowerFactor();
this->l3PowerFactor = other.getL3PowerFactor();
case 3:
this->meterTimestamp = other.getMeterTimestamp();
this->activeImportCounter = other.getActiveImportCounter();
this->activeExportCounter = other.getActiveExportCounter();