Skip to content
Snippets Groups Projects
Commit 8899e426 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-331: Only allow to transistion to init from off

parent f462c765
No related branches found
No related tags found
1 merge request!166L2SS-331: Only allow to transistion to init from off
......@@ -102,7 +102,7 @@ class hardware_device(Device, metaclass=AbstractDeviceMetas):
# --------
@command()
@only_in_states([DevState.FAULT, DevState.OFF])
@only_in_states([DevState.OFF])
@DebugIt()
@fault_on_error()
@log_exceptions()
......
......@@ -62,7 +62,7 @@ class Observation(Device):
# Lifecycle functions
@command(dtype_in = DevString)
@only_in_states([DevState.FAULT, DevState.OFF])
@only_in_states([DevState.OFF])
@log_exceptions()
def Initialise(self, parameters: DevString = None):
self.set_state(DevState.INIT)
......
......@@ -123,7 +123,7 @@ class ObservationControl(Device):
# Lifecycle functions
@command()
@only_in_states([DevState.FAULT, DevState.OFF])
@only_in_states([DevState.OFF])
@log_exceptions()
@DebugIt()
def Initialise(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment