From 210001e232255cd213ab1151b094e9c3fb21a145 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Fri, 24 Jan 2025 13:22:08 +0100 Subject: [PATCH] Prevent meterid override --- lib/MeterCommunicators/src/IEC6205675.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MeterCommunicators/src/IEC6205675.cpp b/lib/MeterCommunicators/src/IEC6205675.cpp index bad3e1ea..ba3cb153 100644 --- a/lib/MeterCommunicators/src/IEC6205675.cpp +++ b/lib/MeterCommunicators/src/IEC6205675.cpp @@ -900,7 +900,7 @@ IEC6205675::IEC6205675(const char* d, uint8_t useMeterType, MeterConfig* meterCo meterType = AmsTypeIskra; } - if(meterType != AmsTypeUnknown) { + if(meterId.isEmpty() && meterType != AmsTypeUnknown) { stripNonAscii((uint8_t*) ctx.system_title, 8); meterId = String((const char*)ctx.system_title); }