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:
l_samenv
2024-07-12 14:48:44 +02:00
parent c2c687f221
commit 0e8dfa767b

View File

@ -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 ""} {