Runtime: Fix typo in PLCObject leading to exception when reporting failure. svghmi
authorEdouard Tisserant
Fri, 19 Jun 2020 11:07:25 +0200
branchsvghmi
changeset 2986 12cd06391185
parent 2985 2ddedeb035e0
child 2987 d3fe41f4a070
Runtime: Fix typo in PLCObject leading to exception when reporting failure.
runtime/PLCObject.py
--- a/runtime/PLCObject.py	Thu Jun 18 14:18:40 2020 +0200
+++ b/runtime/PLCObject.py	Fri Jun 19 11:07:25 2020 +0200
@@ -451,7 +451,7 @@
         self.PythonThreadCond.notify()
         self.PythonThreadCondLock.release()
 
-    def _fail(msg):
+    def _fail(self, msg):
         self.LogMessage(0, msg)
         self.PLCStatus = PlcStatus.Broken
         self.StatusChange()