don't set min/max/step values for EXP based types (workaround for #803)
This commit is contained in:
@@ -1087,7 +1087,7 @@ void MqttHandler::run() {
|
|||||||
values.set("basetype", dataType->getId());
|
values.set("basetype", dataType->getId());
|
||||||
values.set("comment", field->getAttribute("comment"));
|
values.set("comment", field->getAttribute("comment"));
|
||||||
values.set("unit", field->getAttribute("unit"));
|
values.set("unit", field->getAttribute("unit"));
|
||||||
if (dataType->isNumeric()) {
|
if (dataType->isNumeric() && !dataType->hasFlag(EXP)) {
|
||||||
auto dt = dynamic_cast<const NumberDataType*>(dataType);
|
auto dt = dynamic_cast<const NumberDataType*>(dataType);
|
||||||
ostr.str("");
|
ostr.str("");
|
||||||
if (dt->getMinMax(false, g_publishFormat, &ostr) == RESULT_OK) {
|
if (dt->getMinMax(false, g_publishFormat, &ostr) == RESULT_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user