mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-30 10:13:04 +05:00
fix: enforce a gap between freeze protection thresholds
This commit is contained in:
1 parent
9f66402548
commit
981cfefe74
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user