Skip to content

Commit

Permalink
power cycle: add '!' in the usb transport spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverBzH committed Apr 18, 2024
1 parent 71f45ab commit c3dbc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avatar/controllers/usb_bumble_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create(configs: List[Dict[str, Any]]) -> List[BumblePandoraDevice]:
"""Create a list of `BumbleDevice` from configs."""

def transport_from_id(id: str) -> str:
return f'pyusb:{id.removeprefix("usb:")}'
return f'pyusb:!{id.removeprefix("usb:")}'

return [BumblePandoraDevice(config={'transport': transport_from_id(config['id'])}) for config in configs]

Expand Down

0 comments on commit c3dbc92

Please sign in to comment.