Fixed bug in simulation with debugging variables
authorLaurent Bessard
Wed, 15 May 2013 22:15:05 +0200
changeset 51 8a4783508ea9
parent 50 ed1f9752f929
child 52 7fc0928030b6
Fixed bug in simulation with debugging variables
LPCManager.py
--- a/LPCManager.py	Fri May 10 12:14:04 2013 +0200
+++ b/LPCManager.py	Wed May 15 22:15:05 2013 +0200
@@ -916,7 +916,10 @@
             wx.CallAfter(self.RefreshConfNodesBlockLists)
 
         return None
-
+    
+    def IsPLCStarted(self):
+        return self.previous_plcstate == "Started" or self.previous_mode == SIMULATION_MODE
+    
     def UpdateMethodsFromPLCStatus(self):
         simulating = self.CurrentMode == SIMULATION_MODE
         if self.OnlineMode == "OFF":