fix bug in hepump error log
the check that the pump is not running must run more frequently than only every 30 seconds
This commit is contained in:
@ -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 ""} {
|
||||
|
Reference in New Issue
Block a user