fix set hysteresis

This commit is contained in:
Yurii committed 2023-10-11 18:46:37 +03:00
1 parent b54ea9b745
commit fca6dc9393
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}