# HG changeset patch
# User etisserant
# Date 1214408169 -7200
# Node ID dc81d1d0f46387bc8cec80918c65f67224f185e1
# Parent  2a9c4eec8645f34a31705fcaac958770b03ac0e5
Fixed slavebootup bug in generated code.

diff -r 2a9c4eec8645 -r dc81d1d0f463 plugins/canfestival/canfestival.py
--- a/plugins/canfestival/canfestival.py	Wed Jun 25 17:34:57 2008 +0200
+++ b/plugins/canfestival/canfestival.py	Wed Jun 25 17:36:09 2008 +0200
@@ -275,7 +275,8 @@
                        "nodes_close" : "",
                        "nodes_send_sync" : "",
                        "nodes_proceed_sync" : "",
-                       "slavebootups" : ""}
+                       "slavebootups" : "",
+                       "slavebootup_register" : ""}
         for child in self.IECSortedChilds():
             childlocstr = "_".join(map(str,child.GetCurrentLocation()))
             nodename = "OD_%s" % childlocstr
@@ -316,6 +317,8 @@
                 format_dict["slavebootups"] += """ )
         Master_post_SlaveBootup(d,nodeId);
 }
+"""
+                format_dict["slavebootup_register"] += """
 %s_Data.post_SlaveBootup = %s_post_SlaveBootup;
 """%(nodename,nodename)
                 
diff -r 2a9c4eec8645 -r dc81d1d0f463 plugins/canfestival/cf_runtime.c
--- a/plugins/canfestival/cf_runtime.c	Wed Jun 25 17:34:57 2008 +0200
+++ b/plugins/canfestival/cf_runtime.c	Wed Jun 25 17:36:09 2008 +0200
@@ -36,6 +36,7 @@
 void InitNodes(CO_Data* d, UNS32 id)
 {
     %(nodes_init)s
+	%(slavebootup_register)s
 }
 
 void Exit(CO_Data* d, UNS32 id)