Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyusb backend: add exception for Hexiwear #261

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyOCD/pyDAPAccess/interface/pyusb_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def getAllConnectedInterface():
# This can cause an exception to be thrown if the device
# is malfunctioning.
product = board.product
except ValueError:
if board.idVendor is 0xd28 and board.idProduct is 0x204:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this code is ignoring exceptions that occur on boards with a vid,pid other than 0xd28, 0x204? Can you provide any more details on this? Which VID/PID does Hexiwear have?

continue
except usb.core.USBError as error:
logging.warning("Exception getting product string: %s", error)
continue
Expand Down