Skip to content

Commit

Permalink
Fix --list option
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma committed Aug 27, 2020
1 parent 18ac50d commit 2d9a389
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions oversteer/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ def run(self, argv):

nothing_done = True
if args.list == True:
device_list = device_manager.list_devices()
devices = device_manager.get_devices()
print(_("Devices found:"))
for id, name in device_list:
device = device_manager.get_device(id)
print(" {}: {}".format(device.dev_name, name))
for device in devices:
print(" {}: {}".format(device.dev_name, device.name))
nothing_done = False
if args.mode is not None:
device.set_mode(args.mode)
Expand Down

0 comments on commit 2d9a389

Please sign in to comment.