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:
@@ -582,9 +582,11 @@ proc stdSct::afterpoll {script} {
|
||||
|
||||
proc stdSct::updatestatus_ {} {
|
||||
set is_running [hval [sct]/is_running]
|
||||
set new [expr {[sct writestatus] eq "start" || [sct status] eq "run"}]
|
||||
if {$new != $is_running} {
|
||||
hupdate [sct]/is_running $new
|
||||
set run_status "[sct status] [sct writestatus]"
|
||||
if {$run_status ne [silent 0 sct prev_run_status]} {
|
||||
hupdate [sct]/is_running [expr {[sct writestatus] eq "start" || [sct status] eq "run"}]
|
||||
sct prev_run_status $run_status
|
||||
clientlog "RUN STATUS $run_status"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user