Skip to content
Snippets Groups Projects
Commit f678ef97 authored by Jan David Mol's avatar Jan David Mol
Browse files

Allow explicit reinitialisation through Init(), and disabled direct On() command.

parent 98b87961
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,16 @@ class RCUSCC(Device):
"""Initialises the attributes and properties of the RCUSCC."""
Device.init_device(self)
self.Init()
@command(
)
@DebugIt()
def Init(self):
"""
:return:None
"""
self.set_state(DevState.INIT)
# Init the dict that contains attribute to OPC-UA MP/CP mappings.
......@@ -278,6 +288,14 @@ class RCUSCC(Device):
# Everything went ok -- go online
self.On()
@DebugIt()
def On(self):
"""
:return:None
"""
self.set_state(DevState.ON)
def always_executed_hook(self):
"""Method always executed before any TANGO command is executed."""
......@@ -420,16 +438,6 @@ class RCUSCC(Device):
# Commands
# --------
@command(
)
@DebugIt()
def On(self):
"""
:return:None
"""
self.set_state(DevState.ON)
@command(
)
@DebugIt()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment