mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-11 08:54:51 +05:00
fix: enforce minimum heating setpoint during freeze protection
This commit is contained in:
1 parent
451fe92b7a
commit
85dda5b859
1 file changed
+5
-2
+5
-2
@@ -245,8 +245,11 @@ protected:
|
||||
}
|
||||
|
||||
// If freezing, set temperature to no lower than low temp provided by freeze protection
|
||||
if (vars.master.heating.freezing && fabsf(settings.heating.freezeProtection.lowTemp - newTemp) < 0.0001f) {
|
||||
newTemp = settings.heating.freezeProtection.lowTemp;
|
||||
if (vars.master.heating.freezing) {
|
||||
newTemp = fmaxf(
|
||||
newTemp,
|
||||
static_cast<float>(settings.heating.freezeProtection.lowTemp)
|
||||
);
|
||||
}
|
||||
|
||||
return newTemp;
|
||||
|
||||
Reference in new issue
Block a user