plugins/canfestival/config_utils.py
changeset 78 274a343d49d0
parent 61 a20fb174f46e
child 80 d7eb6e22b02e
equal deleted inserted replaced
77:7de69369373e 78:274a343d49d0
   412                 if cobid not in self.MasterMapping.keys():
   412                 if cobid not in self.MasterMapping.keys():
   413                     mapping = [None]
   413                     mapping = [None]
   414                     values = node.GetEntry(index)
   414                     values = node.GetEntry(index)
   415                     # Store the size of each entry mapped in PDO
   415                     # Store the size of each entry mapped in PDO
   416                     for value in values[1:]:
   416                     for value in values[1:]:
   417                         mapping.append(value % 0x100)
   417                         if value != 0:
       
   418                             mapping.append(value % 0x100)
   418                     self.MasterMapping[cobid] = {"type" : InvertPDOType[locationinfos["pdotype"]], "mapping" : mapping}
   419                     self.MasterMapping[cobid] = {"type" : InvertPDOType[locationinfos["pdotype"]], "mapping" : mapping}
   419             
   420             
   420                 # Indicate that this PDO entry must be saved
   421                 # Indicate that this PDO entry must be saved
   421                 self.MasterMapping[cobid]["mapping"][subindex] = (locationinfos["type"], name)
   422                 self.MasterMapping[cobid]["mapping"][subindex] = (locationinfos["type"], name)
   422                 
   423