mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Merge pull request #184 from biveraxe/ver4dev
Дублируем вывод значения айтема с учетом округдения
This commit is contained in:
@@ -62,7 +62,7 @@ String IoTItem::getValue() {
|
||||
if (_round >= 0 && _round <= 6) {
|
||||
char buf[15];
|
||||
sprintf(buf, ("%1." + (String)_round + "f").c_str(), value.valD);
|
||||
return (String)buf;
|
||||
return value.valS = buf;
|
||||
} else
|
||||
return (String)value.valD;
|
||||
} else return value.valS;
|
||||
|
||||
Reference in New Issue
Block a user