libusb: fix HID Report descriptor request #444
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!444
Loading…
Reference in a new issue
No description provided.
Delete branch "libusb_report_descriptor_read"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TODO:
Resolves: #438
@ -575,1 +579,4 @@See USB HID Specificatin, sectin 7.1.1*/int res = libusb_control_transfer(handle, LIBUSB_ENDPOINT_IN|LIBUSB_RECIPIENT_INTERFACE, LIBUSB_REQUEST_GET_DESCRIPTOR, (LIBUSB_DT_REPORT << 8), interface_num, data, report_descriptor_size, 5000);if (res >= 0) {I recommend to use
github.com/libusb/hidapi@65b9e712b1/hidapi/hidapi.h (L97)from the Get_Descriptor branch instead of repeating this value multiple times@ -575,1 +579,4 @@See USB HID Specificatin, sectin 7.1.1*/int res = libusb_control_transfer(handle, LIBUSB_ENDPOINT_IN|LIBUSB_RECIPIENT_INTERFACE, LIBUSB_REQUEST_GET_DESCRIPTOR, (LIBUSB_DT_REPORT << 8), interface_num, data, report_descriptor_size, 5000);if (res >= 0) {My current intention is to update this code for
get_descriptorbranch, once this PR is in master.This branch is going to be merged to master sooner than
get_descriptor.