ips_mercury.SimpleField0.on_restart dead locks

- use unlocke_write_action
This commit is contained in:
zolliker 2023-03-15 16:34:52 +01:00
parent 04755c5173
commit 4d704612fc

View File

@ -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)