etherlab/CommonEtherCATFunction.py
changeset 2407 5f2b1bb464a0
parent 2406 ffd091b51cd0
child 2410 4e7ebd6ec248
--- a/etherlab/CommonEtherCATFunction.py	Sat Sep 29 18:59:41 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Sat Sep 29 19:10:43 2018 +0300
@@ -322,12 +322,12 @@
                 # if entry name exists, save entry data
                 if ExtractName(entry.getName()) is not None:
                     entry_infos = {
-                                "entry_index": index,
-                                "subindex": subindex,
-                                "name": ExtractName(entry.getName()),
-                                "bitlen": entry.getBitLen(),
-                                "type": entry.getDataType().getcontent()
-                                    }
+                        "entry_index": index,
+                        "subindex": subindex,
+                        "name": ExtractName(entry.getName()),
+                        "bitlen": entry.getBitLen(),
+                        "type": entry.getDataType().getcontent()
+                    }
                     self.TxPDOInfo.append(entry_infos)
                     count += 1
 
@@ -352,12 +352,12 @@
                 # if entry name exists, save entry data
                 if ExtractName(entry.getName()) is not None:
                     entry_infos = {
-                                "entry_index": index,
-                                "subindex": subindex,
-                                "name": ExtractName(entry.getName()),
-                                "bitlen": str(entry.getBitLen()),
-                                "type": entry.getDataType().getcontent()
-                                    }
+                        "entry_index": index,
+                        "subindex": subindex,
+                        "name": ExtractName(entry.getName()),
+                        "bitlen": str(entry.getBitLen()),
+                        "type": entry.getDataType().getcontent()
+                    }
                     self.RxPDOInfo.append(entry_infos)
                     count += 1
 
@@ -1187,7 +1187,7 @@
             coe = mb.getCoE()
             if coe is not None:
                 for bit, flag in enumerate(["SdoInfo", "PdoAssign", "PdoConfig",
-                                           "PdoUpload", "CompleteAccess"]):
+                                            "PdoUpload", "CompleteAccess"]):
                     if getattr(coe, "get%s" % flag)() is not None:
                         coe_details += 1 << bit
         eeprom.append("{:0>2x}".format(coe_details))