etherlab/plc_cia402node.c
changeset 2069 840d328560f8
parent 2061 a5641abeac7c
child 2070 dee8d519f3ff
--- a/etherlab/plc_cia402node.c	Mon Jun 25 20:06:17 2012 +0200
+++ b/etherlab/plc_cia402node.c	Fri Jul 20 02:13:07 2012 +0200
@@ -46,7 +46,8 @@
 int __init_%(location)s()
 {
 %(init_entry_variables)s
-	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF(&(__CIA402Node_%(location)s.axis));
+	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF();
+	__CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0);
 	return 0;
 }