mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
Округляем значения элемента используемые в сценарии
This commit is contained in:
@@ -122,7 +122,8 @@ String IoTItem::getRoundValue() {
|
||||
|
||||
char buf[15];
|
||||
sprintf(buf, ("%1." + (String)_round + "f").c_str(), value.valD);
|
||||
return (String)buf;
|
||||
value.valS = (String)buf;
|
||||
return value.valS;
|
||||
} else {
|
||||
return (String)value.valD;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user