--- a/plugins/canfestival/config_utils.py Mon Oct 01 21:52:41 2007 +0200
+++ b/plugins/canfestival/config_utils.py Tue Oct 02 18:02:32 2007 +0200
@@ -493,8 +493,8 @@
self.MasterNode.SetEntry(current_idx, 0x02, 0xFF)
# Add some subentries to PDO mapping if there is not enough
- if len(pdo_infos["mapping"]) > 2:
- self.Manager.AddSubentriesToCurrent(current_idx + 0x200, len(pdo_infos["mapping"]) - 2, self.MasterNode)
+ if len(pdo_infos["mapping"]) > 1:
+ self.Manager.AddSubentriesToCurrent(current_idx + 0x200, len(pdo_infos["mapping"]) - 1, self.MasterNode)
# Generate MasterNode's PDO mapping
for subindex, variable in enumerate(pdo_infos["mapping"]):