Fix bug in CIA402 slave digital inputs
authorLaurent Bessard
Fri, 19 Oct 2012 16:37:54 +0200
changeset 2085 ae263886ae92
parent 2084 579af800b359
child 2086 8e4992e0f147
Fix bug in CIA402 slave digital inputs
etherlab/etherlab.py
--- a/etherlab/etherlab.py	Fri Oct 19 12:43:42 2012 +0200
+++ b/etherlab/etherlab.py	Fri Oct 19 16:37:54 2012 +0200
@@ -171,8 +171,8 @@
         ("ActualPosition", 0x6064, 0x00, "DINT", "I"),
     ]
     
-    DEFAULT_RETRIEVE = "    __CIA402Node_%(location)s.axis->%(name)s = __CIA402Node_%(location)s.%(name)s;"
-    DEFAULT_PUBLISH = "    __CIA402Node_%(location)s.%(name)s = __CIA402Node_%(location)s.axis->%(name)s;"
+    DEFAULT_RETRIEVE = "    __CIA402Node_%(location)s.axis->%(name)s = *(__CIA402Node_%(location)s.%(name)s);"
+    DEFAULT_PUBLISH = "    *(__CIA402Node_%(location)s.%(name)s) = __CIA402Node_%(location)s.axis->%(name)s;"
     
     EXTRA_NODE_VARIABLES = [
         ("DigitalInputs", [