Skip to content

Commit

Permalink
usb: Better help text on failure to mode-switch a Greaseweazle device
Browse files Browse the repository at this point in the history
Refs #338
  • Loading branch information
keirf committed Dec 5, 2024
1 parent f0d43b7 commit 64d37e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/greaseweazle/tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ def usb_reopen(usb, is_update):
new_usb.jumperless_update = usb.jumperless_update
new_usb.can_mode_switch = usb.can_mode_switch
return new_usb
raise serial.SerialException('Could not reopen port after mode switch')
raise serial.SerialException('''\
Could not find the Greaseweazle device after switching firmware mode.
If you are connected via a USB hub, instead try connecting directly.''')


def print_update_instructions(usb):
Expand Down

0 comments on commit 64d37e8

Please sign in to comment.