From 158799ca3f9edb946f152dccb5d9f0a3d607fa0c Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Mon, 1 Mar 2010 16:08:20 +0000 Subject: xusb improvements for HID test: int. vs bulk (Xiaofan Chen) --- examples/xusb.c | 4 ++-- 1 file 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 { -- cgit v1.2.1