plugins/canfestival/config_utils.py
changeset 78 274a343d49d0
parent 61 a20fb174f46e
child 80 d7eb6e22b02e
--- 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