Fixes in run : messages and refresh
authorEdouard TISSERANT <edouard.tisserant@gmail.com>
Sun, 06 Dec 2009 21:43:34 +0100
changeset 464 46dd4358e8a8
parent 463 961bddcfc913
child 465 67d32a91d70b
Fixes in run : messages and refresh
plugger.py
--- a/plugger.py	Sun Dec 06 21:20:21 2009 +0100
+++ b/plugger.py	Sun Dec 06 21:43:34 2009 +0100
@@ -1729,17 +1729,18 @@
 
     def _Run(self):
         """
-        Start PLC (Debug Mode)
+        Start PLC
         """
         if self.GetIECProgramsAndVariables():
             self._connector.StartPLC()
-            self.logger.write(_("Starting PLC (debug mode)\n"))
+            self.logger.write(_("Starting PLC\n"))
             if self.AppFrame:
                 self.AppFrame.ResetGraphicViewers()
+            self.RegisterDebugVarToConnector()
             self.DebugThread = Thread(target=self.DebugThreadProc)
             self.DebugThread.start()
         else:
-            self.logger.write_error(_("Couldn't start PLC debug !\n"))
+            self.logger.write_error(_("Couldn't start PLC !\n"))
         self.UpdateMethodsFromPLCStatus()