Bug on Master config generation fixed
authorlbessard
Mon, 10 Dec 2007 15:53:55 +0100
changeset 78 274a343d49d0
parent 77 7de69369373e
child 79 ae06c2da83f7
Bug on Master config generation fixed
plugins/canfestival/config_utils.py
--- a/plugins/canfestival/config_utils.py	Mon Dec 10 11:04:52 2007 +0100
+++ b/plugins/canfestival/config_utils.py	Mon Dec 10 15:53:55 2007 +0100
@@ -414,7 +414,8 @@
                     values = node.GetEntry(index)
                     # Store the size of each entry mapped in PDO
                     for value in values[1:]:
-                        mapping.append(value % 0x100)
+                        if value != 0:
+                            mapping.append(value % 0x100)
                     self.MasterMapping[cobid] = {"type" : InvertPDOType[locationinfos["pdotype"]], "mapping" : mapping}
             
                 # Indicate that this PDO entry must be saved