Skip to content
Snippets Groups Projects
Commit f9917707 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: Keep applycmdplane boolean on init

Before:
* When performing init(), the boolean were set to False

Now:
* On first init after restart, put it to false
* On latter init, keep the value
parent 10f6a4af
No related branches found
No related tags found
No related merge requests found
......@@ -218,6 +218,10 @@ class DG_PY_FOFBLegacy(Device):
Device.init_device(self)
#----- PROTECTED REGION ID(DG_PY_FOFBLegacy.init_device) ENABLED START -----#
self.set_state(tango.DevState.INIT)
# Create and init member _apply_cmds_to_x_plane only if it doesnt exist (first init at startup)
# Keeps the value for latter init
if not hasattr(self, "_apply_cmds_to_x_plane"):
self._apply_cmds_to_x_plane = False
self._apply_cmds_to_z_plane = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment