Применяем округление значений при отправке данных в режиме 2

This commit is contained in:
2022-11-07 11:45:57 +03:00
parent 2bf726b617
commit c276f4e5e8

View File

@@ -100,7 +100,7 @@ class UART : public IoTItem {
printStr += eventItem->getID();
printStr += "=";
if (eventItem->value.isDecimal)
printStr += eventItem->value.valD;
printStr += eventItem->getRoundValue();
else {
printStr += "\"";
printStr += eventItem->value.valS;