etherlab/CommonEtherCATFunction.py
changeset 2384 d7d9f0e60bc9
parent 2383 6cc3460be285
child 2396 41adf1dfc7a7
--- a/etherlab/CommonEtherCATFunction.py	Sat Sep 29 15:24:07 2018 +0300
+++ b/etherlab/CommonEtherCATFunction.py	Sat Sep 29 15:31:50 2018 +0300
@@ -150,7 +150,7 @@
 
     # category of SDO data
     DatatypeDescription, CommunicationObject, ManufacturerSpecific, \
-    ProfileSpecific, Reserved, AllSDOData = range(6)
+        ProfileSpecific, Reserved, AllSDOData = range(6)
 
     # store the execution result of "ethercat sdos" command into SaveSDOData.
     SaveSDOData = []
@@ -1220,10 +1220,10 @@
         en_safeop = False
         en_lrw = False
         if device.getType().getTcCfgModeSafeOp() is True \
-        or device.getType().getTcCfgModeSafeOp() == 1:
+           or device.getType().getTcCfgModeSafeOp() == 1:
             en_safeop = True
         if device.getType().getUseLrdLwr() is True \
-        or device.getType().getUseLrdLwr() == 1:
+           or device.getType().getUseLrdLwr() == 1:
             en_lrw = True
 
         flags = "0b"+"000000"+str(int(en_lrw))+str(int(en_safeop))