From 53296ccf42553effd7c77a873b652374296f16ca Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Wed, 16 Mar 2022 12:46:59 +0100 Subject: [PATCH] Fixed update of meter state with list type 4 --- src/AmsData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AmsData.cpp b/src/AmsData.cpp index 140e79e5..f3db56e8 100644 --- a/src/AmsData.cpp +++ b/src/AmsData.cpp @@ -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();