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
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,7 @@ def _find_devices(): ...@@ -65,6 +65,7 @@ def _find_devices():
if pyusb1: if pyusb1:
for d in usb.core.find(idVendor=USB_VID, idProduct=USB_PID, find_all=1, for d in usb.core.find(idVendor=USB_VID, idProduct=USB_PID, find_all=1,
backend=pyusb_backend): backend=pyusb_backend):
if d.manufacturer == 'Bitcraze AB':
ret.append(d) ret.append(d)
else: else:
busses = usb.busses() busses = usb.busses()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment