# HG changeset patch
# User Edouard Tisserant
# Date 1592557645 -7200
# Node ID 4d3320fdab1934ba51a2f2b9c4ef8759704fb3cc
# Parent  abc2088aac4e638a1b9bf69ccdb15b85d0e8e8f7
Runtime: Fix typo in PLCObject leading to exception when reporting failure.

diff -r abc2088aac4e -r 4d3320fdab19 runtime/PLCObject.py
--- a/runtime/PLCObject.py	Thu Jun 18 14:18:16 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()