LPCManager.py
changeset 30 9cd6bc93ed89
parent 28 79ee4178006c
child 32 6942b30d13c4
--- a/LPCManager.py	Tue Mar 19 17:22:27 2013 +0900
+++ b/LPCManager.py	Tue Mar 19 23:19:43 2013 +0100
@@ -921,7 +921,8 @@
             status = "Connected"
         else:
             if self._connector is not None:
-                status = self._connector.GetPLCstatus()
+                status, log_count = self._connector.GetPLCstatus()
+                self.UpdatePLCLog(log_count)
             else:
                 status = "Disconnected"
         if self.previous_plcstate != status or self.previous_mode != self.CurrentMode:
@@ -951,6 +952,8 @@
                 self.ShowMethod(*args)
             self.previous_plcstate = status
             self.previous_mode = self.CurrentMode
+            if self.AppFrame is not None:
+                self.AppFrame.RefreshStatusToolBar()
             return True
         return False
 
@@ -1108,7 +1111,7 @@
            # debugger code
            (self.Generate_plc_debugger, "plc_debugger.c", "Debugger"),
            # init/cleanup/retrieve/publish, run and align code
-           (self.Generate_plc_common_main,"plc_common_main.c","Common runtime"),
+           (self.Generate_plc_main,"plc_main.c","Common runtime"),
            # declare located variables for simulate in a black box
            (self.Generate_plc_declare_locations,"plc_declare_locations.c","Declare Locations"),
            # declare located variables for simulate in a black box