# HG changeset patch # User lbessard # Date 1240242156 -7200 # Node ID 13701680330cee6eaebc1208251a7be56741e665 # Parent ff692766e5e9201a091c74a5a2a488ed0b2c2c23 Bug avoided reset PDO mapping fixed diff -r ff692766e5e9 -r 13701680330c objdictgen/eds_utils.py --- a/objdictgen/eds_utils.py Mon Apr 20 17:42:14 2009 +0200 +++ b/objdictgen/eds_utils.py Mon Apr 20 17:42:36 2009 +0200 @@ -513,12 +513,12 @@ manufacturers = [] # Remove all unused PDO - for entry in entries[:]: - if 0x1600 <= entry < 0x1800 or 0x1A00 <= entry < 0x1C00: - subentry_value = Node.GetEntry(entry, 1) - if subentry_value is None or subentry_value == 0: - entries.remove(entry) - entries.remove(entry - 0x200) +## for entry in entries[:]: +## if 0x1600 <= entry < 0x1800 or 0x1A00 <= entry < 0x1C00: +## subentry_value = Node.GetEntry(entry, 1) +## if subentry_value is None or subentry_value == 0: +## entries.remove(entry) +## entries.remove(entry - 0x200) # For each entry, we generate the entry section or sections if there is subindexes for entry in entries: