From fca6dc939380a5105eca65199aca446f83895d68 Mon Sep 17 00:00:00 2001 From: Yurii Date: Wed, 11 Oct 2023 18:46:37 +0300 Subject: [PATCH] fix set hysteresis --- src/MqttTask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }