diff options
author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2018-07-06 18:43:02 +0200 |
---|---|---|
committer | Erik Arvstedt <erik.arvstedt@gmail.com> | 2018-07-07 18:04:36 +0200 |
commit | 5bf9d47b032651cafaf6d26784c99a569411f455 (patch) | |
tree | a63a0f502c34e6cfbbf513954a3756ae67246e4d /Demos/Device | |
parent | 106f0eee17bbe837c9f94bdcf13d28e2952f1aef (diff) | |
download | lufa-5bf9d47b032651cafaf6d26784c99a569411f455.tar.gz lufa-5bf9d47b032651cafaf6d26784c99a569411f455.tar.bz2 lufa-5bf9d47b032651cafaf6d26784c99a569411f455.zip |
Upgrade to PyUSB >= 1.0.0
All major package managers provide PyUSB versions >= 1.0.0 by default.
LUFA used an older, incompatible version, which lead to broken
BulkVendor and GenericHID demo applications for new users.
Also, update the PyUSB homepage URL as the old one is unreachable.
Diffstat (limited to 'Demos/Device')
-rwxr-xr-x | Demos/Device/ClassDriver/GenericHID/HostTestApp/test_generic_hid_libusb.py | 6 | ||||
-rw-r--r-- | Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Device/ClassDriver/GenericHID/HostTestApp/test_generic_hid_libusb.py b/Demos/Device/ClassDriver/GenericHID/HostTestApp/test_generic_hid_libusb.py index 8da8ad767..de700147e 100755 --- a/Demos/Device/ClassDriver/GenericHID/HostTestApp/test_generic_hid_libusb.py +++ b/Demos/Device/ClassDriver/GenericHID/HostTestApp/test_generic_hid_libusb.py @@ -14,7 +14,7 @@ pattern on the target board. Send and received report data is printed to the terminal. - Requires the PyUSB library (http://sourceforge.net/apps/trac/pyusb/). + Requires PyUSB >= 1.0.0 (https://github.com/pyusb/pyusb). """ import sys @@ -71,8 +71,8 @@ def main(): print("Connected to device 0x%04X/0x%04X - %s [%s]" % (hid_device.idVendor, hid_device.idProduct, - usb.util.get_string(hid_device, 256, hid_device.iProduct), - usb.util.get_string(hid_device, 256, hid_device.iManufacturer))) + usb.util.get_string(hid_device, hid_device.iProduct), + usb.util.get_string(hid_device, hid_device.iManufacturer))) p = 0 while (True): diff --git a/Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py b/Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py index 8e54c7c37..f6f5c5f33 100644 --- a/Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py +++ b/Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py @@ -11,7 +11,7 @@ receive a continuous stream of packets to/from to the device, to show bidirectional communications. - Requires the pyUSB library (http://sourceforge.net/projects/pyusb/). + Requires PyUSB >= 1.0.0 (https://github.com/pyusb/pyusb). """ import sys @@ -53,8 +53,8 @@ def main(): print("Connected to device 0x%04X/0x%04X - %s [%s]" % (vendor_device.idVendor, vendor_device.idProduct, - usb.util.get_string(vendor_device, 255, vendor_device.iProduct), - usb.util.get_string(vendor_device, 255, vendor_device.iManufacturer))) + usb.util.get_string(vendor_device, vendor_device.iProduct), + usb.util.get_string(vendor_device, vendor_device.iManufacturer))) x = 0 while 1: |