Skip to content

Commit

Permalink
subsystems should be empty list if non specified
Browse files Browse the repository at this point in the history
  • Loading branch information
andySigler committed Jul 21, 2023
1 parent a7f29f9 commit 30ff300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def _print_update_progress() -> None:
print(msg)

if not subsystems:
subsystems = [s for s in SubSystem]
subsystems.remove(SubSystem.motor_controller_board) # this is ot2
subsystems = []
async for update in api.update_firmware(set(subsystems), force=force):
fw_version = subsystems_on_boot[update.subsystem].next_fw_version
if update.subsystem not in progress_tracker:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ async def _main(simulate: bool, subsystems: List[SubSystem]) -> None:
if getattr(args, f"{s.name}"):
_subsystems.append(s)
if not _subsystems:
_subsystems = ot3_subsystems
_subsystems = []
run(_main(args.simulate, _subsystems))

0 comments on commit 30ff300

Please sign in to comment.