fix: enforce minimum heating setpoint during freeze protection

This commit is contained in:
Yurii committed 2026-10-19 03:09:26 +03:00
1 parent 451fe92b7a
commit 85dda5b859
1 file changed
+5 -2
+5 -2
View File
@@ -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;