gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

getFeatureReport miss the first byte on MacOS #75

Closed athenacolin closed 4 years ago

athenacolin commented 5 years ago

When I use getFeatureReport on our HID product on MacOS, I get the result without the first byte. From the code: System.arraycopy(report.buffer, 1, data, 0, res > data.length ? data.length : res); it removes the first byte from buffer which it's the message part I want but not reportId. Could you please point out what I am misunderstanding here?

wowneverdie commented 5 years ago

same result on Windows

gary-rowe commented 4 years ago

Closing as the method documentation seems clear.