]> rtime.felk.cvut.cz Git - CanFestival-3.git/commitdiff
Modified initial value of 1014h to 0x80 + nodeid when 1014 is not included explicitly...
authorluis <luis>
Tue, 1 Jul 2008 13:21:03 +0000 (13:21 +0000)
committerluis <luis>
Tue, 1 Jul 2008 13:21:03 +0000 (13:21 +0000)
objdictgen/gen_cfile.py

index 4205c458cb3cf01bcf2adaad1e83689a0945e303..c821783da58381dc50d59181785f673c8bb7b128 100644 (file)
@@ -372,7 +372,7 @@ def GenerateFileContent(Node, headerfilepath, pointers_dict = {}):
         entry_infos = Node.GetEntryInfos(0x1014)
         texts["EntryName"] = entry_infos["name"]
         indexContents[0x1014] = """\n/* index 0x1014 :   %(EntryName)s */
-                    UNS32 %(NodeName)s_obj1014 = 0x0;   /* 0 */
+                    UNS32 %(NodeName)s_obj1014 = 0x80 + 0x%(NodeID)02X;   /* 128 + NodeID */
 """%texts
 
     if 0x1016 in communicationlist: