xairy / raw-gadget

USB Raw Gadget — a low-level interface for the Linux USB Gadget subsystem
350 stars 37 forks source link

Suspicious HID_REQ_SET_REPORT length in keyboard example #32

Closed xairy closed 1 year ago

xairy commented 1 year ago

The keyboard example provides an uninitialized response of length of 1 to a HID_REQ_SET_REPORT request. I vaguely recall that the length of 1 might have to do with emulating keyboards for Mac. Nevertheless, the data should be initialized.