Skip to content
Snippets Groups Projects
Unverified Commit 1312f0ee authored by Arnaud Taffanel's avatar Arnaud Taffanel Committed by GitHub
Browse files

Merge pull request #129 from umdlife/hotfix/check_manufacturer_name

Append the device only if the manufacturer name is 'Bitcraze AB'
parents 3c24e993 df371e6e
Branches master
No related tags found
No related merge requests found
......@@ -65,7 +65,8 @@ def _find_devices():
if pyusb1:
for d in usb.core.find(idVendor=USB_VID, idProduct=USB_PID, find_all=1,
backend=pyusb_backend):
ret.append(d)
if d.manufacturer == 'Bitcraze AB':
ret.append(d)
else:
busses = usb.busses()
for bus in busses:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment