# HG changeset patch
# User Laurent Bessard
# Date 1350657474 -7200
# Node ID ae263886ae929ed5c7bbdd28a2f1f32ccb66bac1
# Parent  579af800b3593b1d210387f040607d86b3abef79
Fix bug in CIA402 slave digital inputs

diff -r 579af800b359 -r ae263886ae92 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", [