# HG changeset patch
# User lbessard
# Date 1197298435 -3600
# Node ID 274a343d49d0f5f413efa403647775387b6f0c29
# Parent  7de69369373e876bcb257cb3e05b2b3f54e19f27
Bug on Master config generation fixed

diff -r 7de69369373e -r 274a343d49d0 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