summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-03-01 16:08:20 +0000
committerPete Batard <pbatard@gmail.com>2010-03-01 16:08:20 +0000
commit158799ca3f9edb946f152dccb5d9f0a3d607fa0c (patch)
tree1784c530cf969b6d5d268dc0879947a3872b4865 /examples
parenta3e487f1b934a1e97fb9f30482558afdad98026e (diff)
downloadlibusb-158799ca3f9edb946f152dccb5d9f0a3d607fa0c.tar.gz
xusb improvements for HID test: int. vs bulk (Xiaofan Chen)r182
Diffstat (limited to 'examples')
-rw-r--r--examples/xusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index d37c6b6..e53b474 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -533,8 +533,8 @@ int test_hid(libusb_device_handle *handle, uint8_t endpoint_in)
}
// Attempt a bulk read from endpoint 0 (this should just return a raw input report)
- printf("\nTesting bulk read using endpoint %02X...\n", endpoint_in);
- r = libusb_bulk_transfer(handle, endpoint_in, input_report, size, &size, 5000);
+ printf("\nTesting interrupt read using endpoint %02X...\n", endpoint_in);
+ r = libusb_interrupt_transfer(handle, endpoint_in, input_report, size, &size, 5000);
if (r >= 0) {
display_buffer_hex(input_report, size);
} else {