diff options
Diffstat (limited to 'examples/xusb.c')
-rw-r--r-- | examples/xusb.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index ecb6070..3e0b0ac 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -402,9 +402,9 @@ int test_device(uint16_t vid, uint16_t pid) if (iface == 0) { // Maybe we need to detach the driver perr("failed. Trying to detach driver...\n"); - CALL_CHECK(libusb_detach_kernel_driver(handle, iface)); + libusb_detach_kernel_driver(handle, iface); printf("Claiming interface again...\n"); - CALL_CHECK(libusb_claim_interface(handle, iface)); + libusb_claim_interface(handle, iface); } else { printf("failed.\n"); } @@ -449,7 +449,7 @@ int main(int argc, char** argv) if (argc == 2) { if ((argv[1][0] != '-') || (argv[1][1] == 'h')) { - printf("usage: %s [-h] [-i] [-j] [-k] [-x]\n", argv[0]); + printf("usage: %s [-h] [-i] [-j] [-k] [-l] [-x]\n", argv[0]); printf(" -h: display usage\n"); printf(" -i: test IBM HID Optical Mouse\n"); printf(" -j: test OLIMEX ARM-USB-TINY JTAG, 2 channel composite device\n"); @@ -476,6 +476,12 @@ int main(int argc, char** argv) PID = 0x6025; test_mode = USE_KEY; break; + case 'l': + // Plantronics DSP 400, 2 channel HID composite device - 1 HID interface + VID = 0x047F; + PID = 0x0CA1; + test_mode = USE_HID; + break; default: break; } |