karalabe / hid

Gopher Interface Devices (USB HID)
Other
263 stars 131 forks source link

Incorrect number of written bytes #16

Closed jleni closed 7 months ago

jleni commented 5 years ago

When calling write in Windows, the number of written bytes is off by 1. This is the result of prepending the HID report ID in Windows.

This different behavior may result in issues in other layers.

alessio commented 5 years ago

Hi! Any news on this? @karalabe

gliptak commented 4 years ago

https://github.com/karalabe/hid/issues/23

dolmen commented 2 years ago

Commit 302fd402163c34626286195dfa9adac758334acc should be in another pull request, or in fact not present at all as this is probably fixed in a more recent release of hidapi. See #35.

dolmen commented 2 years ago

This PR is a fix for #36. But the unrelated commit must be removed from the branch.

jleni commented 2 years ago

I am glad to separate this.. I will do it later today

holiman commented 7 months ago

This library is the wrong place to fix it, since it merely pulls in code from https://github.com/libusb/hidapi