connectors/PYRO/__init__.py
changeset 2416 1ca207782dde
parent 2010 bb9c28bd204f
child 2418 5587c490a070
--- a/connectors/PYRO/__init__.py	Mon Oct 01 15:53:34 2018 +0300
+++ b/connectors/PYRO/__init__.py	Tue Oct 02 16:53:14 2018 +0300
@@ -36,6 +36,7 @@
 import Pyro.util
 from Pyro.errors import PyroError
 
+from runtime import PlcStatus
 
 service_type = '_PYRO._tcp.local.'
 # this module attribute contains a list of DNS-SD (Zeroconf) service types
@@ -142,7 +143,7 @@
     _special_return_funcs = {
         "StartPLC": False,
         "GetTraceVariables": ("Broken", None),
-        "GetPLCstatus": ("Broken", None),
+        "GetPLCstatus": (PlcStatus.Broken, None),
         "RemoteExec": (-1, "RemoteExec script failed!")
     }