From: Nathael Pajani Date: Thu, 31 Oct 2024 13:29:33 +0000 (+0100) Subject: Improve critical low temperature handling X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=a23da7913618891b8591f3a1e4386ccb296dafc6;p=soft%2Flpc122x%2Fscialys Improve critical low temperature handling --- diff --git a/v10/main.c b/v10/main.c index e4ec589..3fe37df 100644 --- a/v10/main.c +++ b/v10/main.c @@ -458,7 +458,12 @@ void mode_update(void) forced_target_temp = sc_conf.auto_forced_target_heater_temp; forced_heater_duration = sc_conf.auto_forced_heater_duration * T_MULT; forced_cmd_val = sc_conf.auto_forced_mode_value; - forced_heater_delay = sc_conf.auto_forced_heater_delay * T_MULT; + if (water_centi_degrees > 200) { + forced_heater_delay = sc_conf.auto_forced_heater_delay * T_MULT; + } else { + /* Water is about to freeze, do not delay forced heating */ + forced_heater_delay = 0; + } } }