Merged
authorLaurent Bessard
Sat, 22 Sep 2012 12:07:06 +0200
changeset 2078 7d0ebbff1d08
parent 2076 22e9993348f6 (current diff)
parent 2077 14dfb786c53e (diff)
child 2079 49242019a9ca
Merged
--- a/etherlab/etherlab.py	Fri Sep 21 16:02:33 2012 +0200
+++ b/etherlab/etherlab.py	Sat Sep 22 12:07:06 2012 +0200
@@ -133,13 +133,12 @@
             self.CTNParent.SetSlaveAlias(position, value)
             return value, True
         
-        value, changed = ConfigTreeNode.SetParamsAttribute(self, path, value)
         # Filter IEC_Channel, Slave_Type and Alias that have specific behavior
         if path == "BaseParams.IEC_Channel":
             self.CTNParent.SetSlavePosition(position, value)
         
-        return value, changed
-
+        return ConfigTreeNode.SetParamsAttribute(self, path, value)
+    
     def GetSlaveInfos(self):
         return self.CTNParent.GetSlaveInfos(self.GetSlavePos())
     
--- a/etherlab/plc_cia402node.c	Fri Sep 21 16:02:33 2012 +0200
+++ b/etherlab/plc_cia402node.c	Sat Sep 22 12:07:06 2012 +0200
@@ -29,14 +29,14 @@
 	__SwitchedOn,
 	__OperationEnabled,
 	__QuickStopActive,
-	__FaultReactionActive,
-	__Fault,
+    __FaultReactionActive,
+    __Fault,
 } __CIA402NodeState;
 
 typedef struct {
 %(entry_variables)s
-	__CIA402NodeState state;
-	axis_s* axis;
+    __CIA402NodeState state;
+    axis_s* axis;
 } __CIA402Node;
 
 static __CIA402Node __CIA402Node_%(location)s;