diff --git a/src/MqttTask.h b/src/MqttTask.h index ba42fd7..06c4574 100644 --- a/src/MqttTask.h +++ b/src/MqttTask.h @@ -132,7 +132,7 @@ protected: } if (!doc["heating"]["hysteresis"].isNull() && doc["heating"]["hysteresis"].is()) { - if ( doc["heating"]["hysteresis"].as() > 0 && doc["heating"]["hysteresis"].as() <= 5 ) { + if ( doc["heating"]["hysteresis"].as() >= 0 && doc["heating"]["hysteresis"].as() <= 5 ) { settings.heating.hysteresis = round(doc["heating"]["hysteresis"].as() * 10) / 10; flag = true; }