From a23da7913618891b8591f3a1e4386ccb296dafc6 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 31 Oct 2024 14:29:33 +0100 Subject: [PATCH] Improve critical low temperature handling --- v10/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + } } } -- 2.43.0