--- a/LPCBeremiz.py Fri Jun 04 15:17:48 2010 +0200
+++ b/LPCBeremiz.py Fri Jun 04 15:35:28 2010 +0200
@@ -599,17 +599,17 @@
"Started" : [("_Simulate", False),
"Stopped" : [("_Simulate", False),
"Connected" : [("_Simulate", not simulating),
"Disconnected" :[("_Simulate", not simulating),
@@ -770,6 +770,16 @@
if self.CurrentMode == SIMULATION_MODE:
+ def CompareLocalAndRemotePLC(self): + if self.LPCConnector is None: + # We are now connected. Update button status + MD5 = self.GetLastBuildMD5() + # Check remote target PLC correspondance to that md5 + if MD5 is not None and self.LPCConnector.MatchMD5(MD5): + # warns controller that program match + self.ProgramTransferred() if self.CurrentMode is None and self.OnlineMode != "OFF":
self.CurrentMode = TRANSFER_MODE