From d35d0bb71de65eafa5275a29d9dbddbefaaa19c8 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 30 Jan 2023 22:07:14 +0100 Subject: [PATCH] don't set min/max/step values for EXP based types (workaround for #803) --- src/ebusd/mqtthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index b465dd4d..e51d6f17 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -1087,7 +1087,7 @@ void MqttHandler::run() { values.set("basetype", dataType->getId()); values.set("comment", field->getAttribute("comment")); values.set("unit", field->getAttribute("unit")); - if (dataType->isNumeric()) { + if (dataType->isNumeric() && !dataType->hasFlag(EXP)) { auto dt = dynamic_cast(dataType); ostr.str(""); if (dt->getMinMax(false, g_publishFormat, &ostr) == RESULT_OK) {