PLCControler.py
changeset 661 7891872e6fd7
parent 649 ea237e1431ec
child 681 c141dad94ff4
equal deleted inserted replaced
660:30c0371ac086 661:7891872e6fd7
   548 
   548 
   549     def DebugAvailable(self):
   549     def DebugAvailable(self):
   550         return self.CurrentCompiledProject is not None
   550         return self.CurrentCompiledProject is not None
   551 
   551 
   552     def ProgramTransferred(self):
   552     def ProgramTransferred(self):
   553         self.CurrentCompiledProject = self.NextCompiledProject
   553         if self.NextCompiledProject is None:
       
   554             self.CurrentCompiledProject = self.NextCompiledProject
       
   555         else:
       
   556             self.CurrentCompiledProject = self.Copy(self.Project)
   554 
   557 
   555     def GetChunkInfos(self, from_location, to_location):
   558     def GetChunkInfos(self, from_location, to_location):
   556         row = self.ProgramOffset + 1
   559         row = self.ProgramOffset + 1
   557         col = 1
   560         col = 1
   558         infos = []
   561         infos = []