Bug corrected on gen_cfile
authorlbessard
Thu, 25 Jan 2007 16:49:51 +0100
changeset 70 f36f09f08b62
parent 69 c5495b101f57
child 71 95cd3376cc9f
Bug corrected on gen_cfile
objdictgen/gen_cfile.py
--- a/objdictgen/gen_cfile.py	Mon Jan 22 12:06:29 2007 +0100
+++ b/objdictgen/gen_cfile.py	Thu Jan 25 16:49:51 2007 +0100
@@ -293,7 +293,7 @@
                     name = "%s_obj%04X[%d]"%(texts["NodeName"], texts["index"], subIndex - 1)
             else:
                 if index in variablelist:
-                    name = FormatName(subentry_infos["name"])
+                    name = FormatName("%s_%s"%(entry_infos["name"],subentry_infos["name"]))
                 else:
                     name = "%s_obj%04X_%s"%(texts["NodeName"], texts["index"], FormatName(subentry_infos["name"]))
             if subIndexType == "visible_string":