--- a/LPCManager.py Fri Feb 10 10:40:35 2017 +0100
+++ b/LPCManager.py Fri Mar 24 09:00:08 2017 +0100
@@ -1094,6 +1094,23 @@
if self.OnlineMode == "NORMAL":
+ MD5 = self.GetLastBuildMD5() + for extrafilespath in [self._getExtraFilesPath(), + self._getProjectFilesPath()]: + [(name, open(os.path.join(extrafilespath, name), + for name in os.listdir(extrafilespath)]) + builder = self.GetBuilder() + if builder is not None: + data = builder.GetBinaryCode() + if not self._connector.NewPLC(MD5, data, extrafiles): + dialog = wx.MessageDialog(self.AppFrame, "You must stop the PLC before transfer. Do you want to stop it now and transfer?", style=wx.YES_NO|wx.CENTRE) + if dialog.ShowModal() == wx.ID_YES: ProjectController._Transfer(self)
if self.CurrentMode is None and self.OnlineMode != "OFF":