equal
deleted
inserted
replaced
32 |
32 |
33 def connect(self,comport): |
33 def connect(self,comport): |
34 self.SerialConnection = LPCBootProto(comport,#number |
34 self.SerialConnection = LPCBootProto(comport,#number |
35 115200, #speed |
35 115200, #speed |
36 120) #timeout |
36 120) #timeout |
|
37 self.HandleSerialTransaction(KEEPBOOTINGTransaction()) |
37 self.PLCStatus = "Stopped" |
38 self.PLCStatus = "Stopped" |
38 |
39 |
39 def NewPLC(self, md5sum, data, extrafiles): |
40 def NewPLC(self, md5sum, data, extrafiles): |
40 self.successfully_transfered = self.HandleSerialTransaction(LOADTransaction(data)) |
41 self.successfully_transfered = self.HandleSerialTransaction(LOADTransaction(data)) |
41 return self.successfully_transfered |
42 return self.successfully_transfered |