Also use the interface index when generating the report descriptor dump.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25814 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -113,8 +113,9 @@ HIDDevice::MakeHIDDevice(usb_device device,
|
|||||||
const usb_device_descriptor *deviceDescriptor
|
const usb_device_descriptor *deviceDescriptor
|
||||||
= gUSBModule->get_device_descriptor(device);
|
= gUSBModule->get_device_descriptor(device);
|
||||||
char outputFile[128];
|
char outputFile[128];
|
||||||
sprintf(outputFile, "/tmp/usb_hid_report_descriptor_%04x_%04x.bin",
|
sprintf(outputFile, "/tmp/usb_hid_report_descriptor_%04x_%04x_%lu.bin",
|
||||||
deviceDescriptor->vendor_id, deviceDescriptor->product_id);
|
deviceDescriptor->vendor_id, deviceDescriptor->product_id,
|
||||||
|
interfaceIndex);
|
||||||
int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
write(fd, reportDescriptor, descriptorLength);
|
write(fd, reportDescriptor, descriptorLength);
|
||||||
|
|||||||
Reference in New Issue
Block a user