aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-07-08 18:47:59 +1000
committerGitHub <noreply@github.com>2018-07-08 18:47:59 +1000
commit1e00627a88e040e0469ce2ca0b8bfb7c535ea7a4 (patch)
treea63a0f502c34e6cfbbf513954a3756ae67246e4d /Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py
parent106f0eee17bbe837c9f94bdcf13d28e2952f1aef (diff)
parent5bf9d47b032651cafaf6d26784c99a569411f455 (diff)
downloadlufa-1e00627a88e040e0469ce2ca0b8bfb7c535ea7a4.tar.gz
lufa-1e00627a88e040e0469ce2ca0b8bfb7c535ea7a4.tar.bz2
lufa-1e00627a88e040e0469ce2ca0b8bfb7c535ea7a4.zip
Merge pull request #132 from erikarvstedt/update-pyusb
Update Python USB host examples, to be compatible with PyUSB >= 1.0.0.
Diffstat (limited to 'Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py')
-rw-r--r--Demos/Device/LowLevel/BulkVendor/HostTestApp/test_bulk_vendor.py6
1 files changed, 3 insertions, 3 deletions
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: