Fixed bug in support for module extra params in EthercatCFileGenerator
authorLaurent Bessard
Mon, 29 Apr 2013 11:07:32 +0200
changeset 2140 56643934495c
parent 2139 1565239349a8
child 2141 6963460bfe0f
Fixed bug in support for module extra params in EthercatCFileGenerator
etherlab/EthercatCFileGenerator.py
--- a/etherlab/EthercatCFileGenerator.py	Mon Apr 29 11:03:06 2013 +0200
+++ b/etherlab/EthercatCFileGenerator.py	Mon Apr 29 11:07:32 2013 +0200
@@ -322,7 +322,7 @@
                                 if slave_variables.get((index, subindex), None) is not None:
                                     pdo_mapping_match["matching"] += 1
                         
-                            if pdo.getFixed() == True:
+                            if pdo.getFixed() != True:
                                 pdo_mapping_match["matching"] += \
                                     module_extra_params["max_pdo_size"] - \
                                     pdo_mapping_match["count"]