don't set min/max/step values for EXP based types (workaround for #803)

This commit is contained in:
John
2023-01-30 22:07:14 +01:00
parent fd47929f8e
commit d35d0bb71d
+1 -1
View File
@@ -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<const NumberDataType*>(dataType);
ostr.str("");
if (dt->getMinMax(false, g_publishFormat, &ostr) == RESULT_OK) {