From 85dda5b8595da321db7b60434af4fe58b49a26d0 Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 19 Oct 2026 03:07:32 +0300 Subject: [PATCH] fix: enforce minimum heating setpoint during freeze protection --- src/RegulatorTask.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;