isse with drivables on the frappy interface

the is_running parameter is not always updated when needed.
instead of sending an update when is_running changes itself,
it should send it whenever the status OR the writestatus property
changes.
This commit is contained in:
l_samenv
2024-08-08 16:37:30 +02:00
parent 0e8dfa767b
commit 9907ad1d89

View File

@@ -582,9 +582,11 @@ proc stdSct::afterpoll {script} {
proc stdSct::updatestatus_ {} { proc stdSct::updatestatus_ {} {
set is_running [hval [sct]/is_running] set is_running [hval [sct]/is_running]
set new [expr {[sct writestatus] eq "start" || [sct status] eq "run"}] set run_status "[sct status] [sct writestatus]"
if {$new != $is_running} { if {$run_status ne [silent 0 sct prev_run_status]} {
hupdate [sct]/is_running $new hupdate [sct]/is_running [expr {[sct writestatus] eq "start" || [sct status] eq "run"}]
sct prev_run_status $run_status
clientlog "RUN STATUS $run_status"
} }
} }