# HG changeset patch # User Laurent Bessard # Date 1354806466 -3600 # Node ID 90b738e4ede56e7cb0aac996ce9a17fa6e4dfd86 # Parent d7c015cb0df02105f8315bc7e011f8b85ce1f2bd Fixed warnings when compiling generated Object Dictionary diff -r d7c015cb0df0 -r 90b738e4ede5 objdictgen/gen_cfile.py --- a/objdictgen/gen_cfile.py Thu Dec 06 16:06:51 2012 +0100 +++ b/objdictgen/gen_cfile.py Thu Dec 06 16:07:46 2012 +0100 @@ -73,12 +73,12 @@ size = max(size, len(item)) if values[1] != "": size = max(size, int(values[1])) - typeinfos = ("INTEGER8", size, "visible_string", False) + typeinfos = ("UNS8", size, "visible_string", False) elif values[0] == "DOMAIN": size = 0 for item in items: size = max(size, len(item)) - typeinfos = ("INTEGER8", size, "domain", False) + typeinfos = ("UNS8", size, "domain", False) elif values[0] == "BOOLEAN": typeinfos = ("UNS8", None, "boolean", False) else: @@ -421,14 +421,14 @@ entry_infos = Node.GetEntryInfos(0x100C) texts["EntryName"] = entry_infos["name"] indexContents[0x100C] = """\n/* index 0x100C : %(EntryName)s */ - UNS8 %(NodeName)s_obj100C = 0x0; /* 0 */ + UNS16 %(NodeName)s_obj100C = 0x0; /* 0 */ """%texts if 0x100D not in communicationlist: entry_infos = Node.GetEntryInfos(0x100D) texts["EntryName"] = entry_infos["name"] indexContents[0x100D] = """\n/* index 0x100D : %(EntryName)s */ - UNS16 %(NodeName)s_obj100D = 0x0; /* 0 */ + UNS8 %(NodeName)s_obj100D = 0x0; /* 0 */ """%texts #-------------------------------------------------------------------------------