From 5898a0b135f36a0c5f3fb24020fa436f8616c024 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 13 Nov 2022 17:28:52 +0100 Subject: [PATCH] use configured output format for min/max formatting (#709) --- src/ebusd/mqtthandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index 71784e3f..a67086ab 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -1079,11 +1079,11 @@ void MqttHandler::run() { if (dataType->isNumeric()) { auto dt = dynamic_cast(dataType); ostr.str(""); - if (dt->getMinMax(false, OF_NONE, &ostr) == RESULT_OK) { + if (dt->getMinMax(false, g_publishFormat, &ostr) == RESULT_OK) { values.set("min", ostr.str()); ostr.str(""); } - if (dt->getMinMax(true, OF_NONE, &ostr) == RESULT_OK) { + if (dt->getMinMax(true, g_publishFormat, &ostr) == RESULT_OK) { values.set("max", ostr.str()); } }