From e5eab82d68a7456cfa9471d21e8e0c203f1445cb Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Thu, 5 Jun 2025 07:41:50 +0200 Subject: [PATCH] Use list type 4 when phase power is included in Slovenian format (#967) --- lib/MeterCommunicators/src/IEC6205675.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MeterCommunicators/src/IEC6205675.cpp b/lib/MeterCommunicators/src/IEC6205675.cpp index ba3cb153..b02e7a35 100644 --- a/lib/MeterCommunicators/src/IEC6205675.cpp +++ b/lib/MeterCommunicators/src/IEC6205675.cpp @@ -148,7 +148,7 @@ IEC6205675::IEC6205675(const char* d, uint8_t useMeterType, MeterConfig* meterCo data = getCosemDataAt(idx++, ((char *) (d))); if(data->base.length == 0x12) { apply(state); - listType = state.getListType() > 2 ? state.getListType() : 2; + listType = state.getListType() > 4 ? state.getListType() : 4; // 42.0.0 COSEM logical device name idx++; @@ -327,7 +327,7 @@ IEC6205675::IEC6205675(const char* d, uint8_t useMeterType, MeterConfig* meterCo CosemData* no7 = getCosemDataAt(7, ((char *) (d))); if(no7->base.type == CosemTypeLongUnsigned) { apply(state); - listType = state.getListType() > 2 ? state.getListType() : 2; + listType = state.getListType() > 4 ? state.getListType() : 4; // 42.0.0 COSEM logical device name idx++;