From 981cfefe74bfbbe5c38d6eaa5932493f43d43bba Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 30 Nov 2026 01:15:08 +0300 Subject: [PATCH] fix: enforce a gap between freeze protection thresholds --- src/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 17ed872..1f3e366 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1446,8 +1446,8 @@ static bool normalizeHeatingOverheatBounds(HeatingSettings& dst) { static bool normalizeHeatingFreezeBounds(HeatingSettings& dst) { bool changed = false; - if (dst.freezeProtection.highTemp < dst.freezeProtection.lowTemp) { - dst.freezeProtection.highTemp = dst.freezeProtection.lowTemp; + if (dst.freezeProtection.highTemp <= dst.freezeProtection.lowTemp) { + dst.freezeProtection.highTemp = dst.freezeProtection.lowTemp + 1; changed = true; }