Closedown
This commit is contained in:
@@ -380,7 +380,7 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
#High-level, exclusive motion task.
|
||||
def start_task(self, program, *args, **kwargs):
|
||||
for task in (self.high_level_tasks + [program]):
|
||||
if self.get_task_status(task)>=0:
|
||||
if self.get_task_status(task)[0]>=0:
|
||||
raise Exception("Cannot start program - ongoing high-level task: " + task)
|
||||
self.current_task = program
|
||||
self.task_create(program, args, kwargs)
|
||||
|
||||
Reference in New Issue
Block a user