Fixed slavebootup bug in generated code.
--- 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)
--- 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)