fix: enforce a gap between freeze protection thresholds

This commit is contained in:
Yurii committed 2026-11-30 01:15:08 +03:00
1 parent 9f66402548
commit 981cfefe74
1 file changed
+2 -2
+2 -2
View File
@@ -1446,8 +1446,8 @@ static bool normalizeHeatingOverheatBounds(HeatingSettings& dst) {
static bool normalizeHeatingFreezeBounds(HeatingSettings& dst) { static bool normalizeHeatingFreezeBounds(HeatingSettings& dst) {
bool changed = false; bool changed = false;
if (dst.freezeProtection.highTemp < dst.freezeProtection.lowTemp) { if (dst.freezeProtection.highTemp <= dst.freezeProtection.lowTemp) {
dst.freezeProtection.highTemp = dst.freezeProtection.lowTemp; dst.freezeProtection.highTemp = dst.freezeProtection.lowTemp + 1;
changed = true; changed = true;
} }