objdictgen/gen_cfile.py
changeset 314 68e83c3ffbb5
parent 313 fed411af774a
child 325 65b1b2d9e20b
--- a/objdictgen/gen_cfile.py	Mon Nov 12 13:24:17 2007 +0100
+++ b/objdictgen/gen_cfile.py	Mon Nov 12 14:38:34 2007 +0100
@@ -363,6 +363,13 @@
                     UNS32 %(NodeName)s_obj1006 = 0x0;   /* 0 */
 """%texts
 
+    if 0x1014 not in communicationlist:
+        entry_infos = Node.GetEntryInfos(0x1014)
+        texts["EntryName"] = entry_infos["name"]
+        indexContents[0x1014] = """\n/* index 0x1014 :   %(EntryName)s */
+                    UNS32 %(NodeName)s_obj1014 = 0x0;   /* 0 */
+"""%texts
+
     if 0x1016 in communicationlist:
         texts["nombre"] = Node.GetEntry(0x1016, 0)
     else: