runtime/PLCObject.py
changeset 2586 b89484560a97
parent 2583 e172ab28d04e
child 2594 f1e182818434
--- a/runtime/PLCObject.py	Tue Apr 09 13:13:27 2019 +0200
+++ b/runtime/PLCObject.py	Tue Apr 09 13:18:51 2019 +0200
@@ -391,7 +391,6 @@
         self.PythonThread = Thread(target=self.PythonThreadProc)
         self.PythonThread.start()
 
-
     # used internaly
     def PythonRuntimeCleanup(self):
         if self.python_runtime_vars is not None:
@@ -436,19 +435,17 @@
                 cmd = self.PythonThreadCmd
                 self.PythonThreadCmd = "Wait"
             self.PythonThreadCondLock.release()
-            
-            if cmd == "Activate" :
+
+            if cmd == "Activate":
                 self.PythonRuntimeCall("start")
-
                 self.PythonThreadLoop()
-                
                 self.PythonRuntimeCall("stop")
             else:  # "Finish"
                 break
 
     def PythonThreadCommand(self, cmd):
         self.PythonThreadCondLock.acquire()
-        self.PythonThreadCmd = cmd 
+        self.PythonThreadCmd = cmd
         self.PythonThreadCond.notify()
         self.PythonThreadCondLock.release()