ips_mercury.SimpleField0.on_restart dead locks
- use unlocke_write_action
This commit is contained in:
parent
04755c5173
commit
4d704612fc
@ -56,9 +56,12 @@ class SimpleField0(MercuryChannel, SimpleMagfield):
|
||||
def read_action(self):
|
||||
return self.query('PSU:ACTN', hold_rtoz_rtos_clmp)
|
||||
|
||||
def write_action(self, value):
|
||||
def unlocked_write_action(self, value):
|
||||
return self.change('PSU:ACTN', value, hold_rtoz_rtos_clmp)
|
||||
|
||||
def write_action(self, value):
|
||||
return self.unlocked_write_action(value)
|
||||
|
||||
def read_atob(self):
|
||||
return self.query('PSU:ATOB')
|
||||
|
||||
@ -99,7 +102,7 @@ class SimpleField0(MercuryChannel, SimpleMagfield):
|
||||
return super().final_status(*args, **kwds)
|
||||
|
||||
def on_restart(self, state):
|
||||
self.write_action('hold')
|
||||
self.unlocked_write_action(Action.hold)
|
||||
return super().on_restart(state)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user