diff --git a/tcl/drivers/hepump.tcl b/tcl/drivers/hepump.tcl index 14d277e..01584d5 100644 --- a/tcl/drivers/hepump.tcl +++ b/tcl/drivers/hepump.tcl @@ -330,6 +330,12 @@ proc hepump::get_running {} { return idle } sct update $running + if {!$running} { + catch { + hsetprop /nv off_until [expr $now + 10] + hsetprop /nv off_reason "He pump not running" + } + } if {$now < [silent 0 sct last_ok] + 30} { return idle } @@ -350,10 +356,6 @@ proc hepump::get_running {} { } else { sct last_ok [DoubleTime] } - catch { - hsetprop /nv off_until [expr $now + 10] - hsetprop /nv off_reason "He pump not running" - } } if {$new ne $old} { if {$new ne ""} {