mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 19:58:44 +05:00
fix set hysteresis
This commit is contained in:
1 parent
b54ea9b745
commit
fca6dc9393
1 file changed
+1
-1
+1
-1
@@ -132,7 +132,7 @@ protected:
|
||||
}
|
||||
|
||||
if (!doc["heating"]["hysteresis"].isNull() && doc["heating"]["hysteresis"].is<float>()) {
|
||||
if ( doc["heating"]["hysteresis"].as<float>() > 0 && doc["heating"]["hysteresis"].as<float>() <= 5 ) {
|
||||
if ( doc["heating"]["hysteresis"].as<float>() >= 0 && doc["heating"]["hysteresis"].as<float>() <= 5 ) {
|
||||
settings.heating.hysteresis = round(doc["heating"]["hysteresis"].as<float>() * 10) / 10;
|
||||
flag = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user