# HG changeset patch # User Laurent Bessard # Date 1364425735 -3600 # Node ID 388777d307dec0cc50288226e10c655197e38964 # Parent 44c3cafef436b9009c0786d13fb5ce6c79f615a7 Fixed bug when transferring New PLC to a non-empty pyro connector diff -r 44c3cafef436 -r 388777d307de runtime/PLCObject.py --- a/runtime/PLCObject.py Thu Mar 28 00:03:44 2013 +0100 +++ b/runtime/PLCObject.py Thu Mar 28 00:08:55 2013 +0100 @@ -343,12 +343,12 @@ return self.PLCStatus, map(self.GetLogCount,xrange(LogLevelsCount)) def NewPLC(self, md5sum, data, extrafiles): - self.LogMessage("NewPLC (%s)"%md5sum) if self.PLCStatus in ["Stopped", "Empty", "Broken"]: NewFileName = md5sum + lib_ext extra_files_log = os.path.join(self.workingdir,"extra_files.txt") self._FreePLC() + self.LogMessage("NewPLC (%s)"%md5sum) self.PLCStatus = "Empty" try: