Commit 457c725c authored by Claudio Scafuri's avatar Claudio Scafuri 💬
Browse files

tweak wait of post sequencer end

parent deee15ea
......@@ -160,9 +160,11 @@ class applyvaluesthread(threading.Thread):
self.master.error_stream('failed reading post sequencer state')
post_state = tango.DevState.RUNNING #presume running...
if post_state == tango.DevState.RUNNING or post_state == tango.DevState.STANDBY :
self.master.info_stream('step 3: wait post sequencer 3Hc termination - after sleep')
self.master.set_state(tango.DevState.MOVING)
time.sleep(0.5)
post_seq_tot_sleep += 1
self.master.info_stream('step 3: wait post sequencer 3Hc termination - after sleep')
else:
break
......
......@@ -342,16 +342,13 @@ class opathread(threading.Thread):
self.master.attr_LastSetMsg += 'failed reading post sequencer state\n'
self.master.error_stream('failed reading post sequencer state')
post_state = tango.DevState.RUNNING #presume running...
if post_state == tango.DevState.RUNNING or post_state == tango.DevState.STANDBY :
self.master.set_state(tango.DevState.MOVING)
self.master.debug_stream('step 9: wait post sequencer OPA termination - after sleep')
time.sleep(0.5)
post_seq_tot_sleep += 1
self.master.debug_stream('step 9: wait post sequencer OPA termination - after sleep')
else:
break
break
self.master.set_status('ApplyCalculatedValues OPA thread done.')
self.master.info_stream('ApplyCalculatedValues OPA thread done.')
self.master.internal_state = self.master.prev_state
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment