equal
deleted
inserted
replaced
514 # List of entry by type (Mandatory, Optional or Manufacturer |
514 # List of entry by type (Mandatory, Optional or Manufacturer |
515 mandatories = [] |
515 mandatories = [] |
516 optionals = [] |
516 optionals = [] |
517 manufacturers = [] |
517 manufacturers = [] |
518 |
518 |
|
519 # Remove all unused PDO |
|
520 for entry in entries[:]: |
|
521 if 0x1600 <= entry < 0x1800 or 0x1A00 <= entry < 0x1C00: |
|
522 subentry_value = Node.GetEntry(entry, 1) |
|
523 if subentry_value is None or subentry_value == 0: |
|
524 entries.remove(entry) |
|
525 entries.remove(entry - 0x200) |
|
526 |
519 # For each entry, we generate the entry section or sections if there is subindexes |
527 # For each entry, we generate the entry section or sections if there is subindexes |
520 for entry in entries: |
528 for entry in entries: |
521 # Extract infos and values for the entry |
529 # Extract infos and values for the entry |
522 entry_infos = Node.GetEntryInfos(entry) |
530 entry_infos = Node.GetEntryInfos(entry) |
523 values = Node.GetEntry(entry, compute = False) |
531 values = Node.GetEntry(entry, compute = False) |