equal
deleted
inserted
replaced
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 |