etherlab/CommonEtherCATFunction.py
changeset 2398 0ae721a79654
parent 2397 25f16349644b
child 2400 7afecc27db95
--- a/etherlab/CommonEtherCATFunction.py	Sat Sep 29 16:40:56 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Sat Sep 29 16:46:41 2018 +0300
@@ -330,7 +330,7 @@
             self.TxPDOCategory.append(categorys)
 
         # Parsing RxPDO entries
-        for pdo, pdo_info in ([(pdo, "Outputs") for pdo in device.getRxPdo()]):
+        for pdo, pdo_info in ([(rxpdo, "Outputs") for rxpdo in device.getRxPdo()]):
             # Save pdo_index, entry, and name of each entry
             pdo_index = ExtractHexDecValue(pdo.getIndex().getcontent())
             entries = pdo.getEntry()