diff --git a/devices/util/startup.py b/devices/util/startup.py index 81f851733edce55240b60d80d2a7bd83e6575692..0f4bcbe702b1bd1edb873234763d56455b6009b4 100644 --- a/devices/util/startup.py +++ b/devices/util/startup.py @@ -12,7 +12,7 @@ def startup(device: str, force_restart: bool): if force_restart is True: print("Forcing device {} restart.".format(device)) - proxy.configure_for_off() + proxy.off() state = proxy.state() if state is not tango._tango.DevState.OFF: print("Device {} cannot perform off although restart has been enforced, state = {}. Please investigate.".format(device, state)) @@ -21,17 +21,16 @@ def startup(device: str, force_restart: bool): print("Device {} is not in OFF state, cannot start it. state = {}".format(device, state)) return proxy print("Device {} is in OFF, performing initialisation.".format(device)) - proxy.configure_for_initialise() + proxy.initialise() state = proxy.state() if state is not tango._tango.DevState.STANDBY: print("Device {} cannot perform initialise, state = {}. Please investigate.".format(device, state)) return proxy print("Device {} is in STANDBY, performing on.".format(device)) - proxy.configure_for_on() + proxy.on() state = proxy.state() if state is not tango._tango.DevState.ON: print("Device {} cannot perform on, state = {}. Please investigate.".format(device, state)) else: print("Device {} has successfully reached ON state.".format(device)) return proxy -