Added bug in support for set flag for optional variables activation in axis public struct
authorLaurent Bessard
Tue, 25 Jun 2013 00:55:38 +0200
changeset 2156 c8eee6be2da8
parent 2155 d63541200d8e
child 2157 a2385e535cf5
Added bug in support for set flag for optional variables activation in axis public struct
etherlab/EthercatCIA402Slave.py
--- a/etherlab/EthercatCIA402Slave.py	Mon Jun 24 23:53:57 2013 +0200
+++ b/etherlab/EthercatCIA402Slave.py	Tue Jun 25 00:55:38 2013 +0200
@@ -250,7 +250,7 @@
             # Param is optional variables section enable flag
             extra_node_variable_infos = EXTRA_NODE_VARIABLES_DICT.get(param_name)
             if extra_node_variable_infos is not None:
-                param_name += "Enabled"
+                param_name = param_name.replace("Enable", "") + "Enabled"
                 
                 if not param["value"]:
                     continue