etherlab/runtime_etherlab.py
changeset 2360 2a3d022a7dac
parent 2358 8e5a9830867e
child 2363 9c7da6ff6a34
--- a/etherlab/runtime_etherlab.py	Fri Sep 28 18:00:50 2018 +0300
+++ b/etherlab/runtime_etherlab.py	Fri Sep 28 18:04:28 2018 +0300
@@ -16,6 +16,7 @@
 SDOProc = None
 Result = None
 
+
 def SDOThreadProc(*params):
     global Result, SDOProc
     if params[0] == "upload":
@@ -48,22 +49,27 @@
             LogLevelsDict["WARNING"],
             "%s : %s" % (command,output))
 
+
 def EthercatSDOUpload(pos, index, subindex, var_type):
     global SDOThread
     SDOThread = Thread(target=SDOThreadProc, args=["upload", pos, var_type, index, subindex])
     SDOThread.start()
 
+
 def EthercatSDODownload(pos, index, subindex, var_type, value):
     global SDOThread
     SDOThread = Thread(target=SDOThreadProc, args=["download", pos, var_type, index, subindex, value])
     SDOThread.start()
 
+
 def GetResult():
     global Result
     return Result
 
 KMSGPollThread=None
 StopKMSGThread=False
+
+
 def KMSGPollThreadProc():
     """
     Logs Kernel messages starting with EtherCAT
@@ -95,12 +101,14 @@
                     msg)
         time.sleep(0.5)
 
+
 def _runtime_etherlab_init():
     global KMSGPollThread, StopKMSGThread
     StopKMSGThread = False
     KMSGPollThread = Thread(target = KMSGPollThreadProc)
     KMSGPollThread.start()
 
+
 def _runtime_etherlab_cleanup():
     global KMSGPollThread, StopKMSGThread, SDOProc, SDOThread
     try: