Skip to content

Commit

Permalink
Merge pull request #150 from ShadedSelf/schedule
Browse files Browse the repository at this point in the history
Change schedule command with empty tasks to resume
  • Loading branch information
EinEinfach authored Aug 6, 2024
2 parents d63fe24 + 0061804 commit ac44cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CaSSAndRA/src/backend/data/scheduledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def create_start_cmd(self) -> None:
tasks_order_table = [self.monday_task, self.tuesday_task, self.wednesday_task, self.thursday_task, self.friday_task, self.saturday_task, self.sunday_task]
if tasks_order_table[self.dayweek].subtasks.empty and robot.last_task_name == 'mow':
logger.info('Resume job')
cmdlist.cmd_mow = True
cmdlist.cmd_resume = True
self.job_started = True
elif not tasks_order_table[self.dayweek].subtasks.empty:
logger.info('Create job from selected tasks')
Expand Down Expand Up @@ -145,4 +145,4 @@ def check(self) -> None:
self.check_start_time()
self.check_dock_time()

schedule_tasks = ScheduleTasks()
schedule_tasks = ScheduleTasks()

0 comments on commit ac44cd5

Please sign in to comment.