Skip to content
Snippets Groups Projects
Commit f739095f authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Fix name clash Init() -> Initialise()

The Tango C++ kernel provides a built-in function init().  Unfortunately
are names in Tango (mostly) case-insensitive.  This led to a name clash
with our own Init() function and at first unexplainable behaviour.
parent f8ae9280
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ class RCUSCC(Device): ...@@ -60,7 +60,7 @@ class RCUSCC(Device):
* -> OFF: Triggered by user. Device is turned off. Triggered by the Off() command, * -> OFF: Triggered by user. Device is turned off. Triggered by the Off() command,
FAULT -> INIT: Triggered by user. Device is reinitialised to recover from an error, FAULT -> INIT: Triggered by user. Device is reinitialised to recover from an error,
The user triggers their transitions by the commands reflecting the target state (Init(), On(), Fault()). The user triggers their transitions by the commands reflecting the target state (Initialise(), On(), Fault()).
""" """
client = 0 client = 0
name_space_index = 0 name_space_index = 0
...@@ -392,7 +392,7 @@ class RCUSCC(Device): ...@@ -392,7 +392,7 @@ class RCUSCC(Device):
This method allows for any memory or other resources allocated in the This method allows for any memory or other resources allocated in the
init_device method to be released. This method is called by the device init_device method to be released. This method is called by the device
destructor and by the device Init command. destructor and by the device Init command (a Tango built-in).
""" """
self.debug_stream("Shutting down...") self.debug_stream("Shutting down...")
...@@ -607,7 +607,7 @@ class RCUSCC(Device): ...@@ -607,7 +607,7 @@ class RCUSCC(Device):
@command() @command()
@only_in_states([DevState.FAULT, DevState.OFF]) @only_in_states([DevState.FAULT, DevState.OFF])
@DebugIt() @DebugIt()
def Init(self): def Initialise(self):
""" """
Command to ask for initialisation of this device. Can only be called in FAULT or OFF state. Command to ask for initialisation of this device. Can only be called in FAULT or OFF state.
...@@ -668,7 +668,7 @@ class RCUSCC(Device): ...@@ -668,7 +668,7 @@ class RCUSCC(Device):
This device will try to reconnect once, and transition to the ON state on success. This device will try to reconnect once, and transition to the ON state on success.
If reconnecting fails, the user needs to call Init() to retry to restart this device. If reconnecting fails, the user needs to call Initialise() to retry to restart this device.
:return:None :return:None
""" """
......
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