From 5c5f0d3ef7389569fdbda83cb0cecfefde5bc72e Mon Sep 17 00:00:00 2001 From: sans Date: Tue, 24 Oct 2023 13:13:48 +0200 Subject: [PATCH] use tt.set.reg instead of tt.target for hepump auto eco if available --- tcl/drivers/hepump.tcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tcl/drivers/hepump.tcl b/tcl/drivers/hepump.tcl index 5f0a952..1cdeb09 100644 --- a/tcl/drivers/hepump.tcl +++ b/tcl/drivers/hepump.tcl @@ -400,9 +400,10 @@ proc hepump::get_auto {} { if {$auto && $oldeco != 2} { set eco [sctval [sct parent]/eco] set lim [sctval [sct parent]/eco_t_lim 7] - if {[silent 10 hval /tt/target] < $lim && [silent 10 hval /tt] < 2 * $lim} { + set target [silent [silent $lim hval /tt/target] hval /tt/set/reg] + if {$target < $lim && [silent $lim hval /tt] < 2 * $lim} { set ecoset 0 - } elseif {[silent 10 hval /tt/target] > $lim || [silent 10 hval /tt] > 3 * $lim} { + } elseif {$target > $lim || [silent $lim hval /tt] > 3 * $lim} { set ecoset 1 } else { set ecoset $eco