diff --git a/src/RegulatorTask.h b/src/RegulatorTask.h index 8bd2420..bd7be47 100644 --- a/src/RegulatorTask.h +++ b/src/RegulatorTask.h @@ -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(settings.heating.freezeProtection.lowTemp) + ); } return newTemp;