Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 16:03:21 +02:00
parent 2eb5a659d2
commit a1f33ba8fa

View File

@@ -374,7 +374,6 @@ class RobotTCP(TcpDevice, Stoppable):
self.getLogger().info(ev)
self.on_event(ev)
if (self.current_task is not None) and (self.get_task_status(self.current_task)[0]<0):
print "Resetting", self.get_task_status(self.current_task)
self.current_task = None
self._update_state()
self.reset = False
@@ -398,7 +397,6 @@ class RobotTCP(TcpDevice, Stoppable):
for task in tasks:
if self.get_task_status(task)[0]>=0:
raise Exception("Ongoing high-level task: " + task)
print "Setting ", program
self.current_task = program
self.task_create(program, *args, **kwargs)
time.sleep(0.5) #get_task_status needs time