Skip to content

Commit

Permalink
Oops, BLOCKED_BY_OPEN_DOOR should still be blue.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Aug 9, 2024
1 parent ce203fa commit 41c1331
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions robot-server/robot_server/runs/light_control_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ def _engine_status_to_status_bar(
return StatusBarState.IDLE if initialization_done else StatusBarState.OFF
case EngineStatus.RUNNING:
return StatusBarState.RUNNING
case EngineStatus.PAUSED:
case EngineStatus.PAUSED | EngineStatus.BLOCKED_BY_OPEN_DOOR:
return StatusBarState.PAUSED
case (
EngineStatus.BLOCKED_BY_OPEN_DOOR
| EngineStatus.AWAITING_RECOVERY
EngineStatus.AWAITING_RECOVERY
| EngineStatus.AWAITING_RECOVERY_PAUSED
| EngineStatus.AWAITING_RECOVERY_BLOCKED_BY_OPEN_DOOR
):
Expand Down

0 comments on commit 41c1331

Please sign in to comment.