Bug avoided reset PDO mapping fixed
authorlbessard
Mon, 20 Apr 2009 17:42:36 +0200
changeset 546 13701680330c
parent 545 ff692766e5e9
child 547 79a24eb3ba28
Bug avoided reset PDO mapping fixed
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: