[libusb] hid_read doesn't include the report ID #759
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#759
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Hi,
I have using hidapi_libusb on Android, and it looks like the first byte returned by
hid_readis not the report ID as the doc suggest.Trying on my Linux machine with
hidrawand the same device,hid_readdoes include the report ID as first byte, so I suspect there is something wrong with libusb, or libusb on Android.Do you have any suggestion to work around this? Mainly, I'm wondering if there is a way, even as a subsequent call to get the report ID related to a buffer read with
hid_readTested with version 0.14.0
Apologies, after further debugging, it looks like this is inaccurate and
hid_readdoes return the right value!FYI, the problem was actually https://github.com/libusb/hidapi/issues/274
Now testing #728 to see if it fixes the issue