Skip to content

Conversation

dhalbert
Copy link
Collaborator

Allow an HID usage of zero, even though it is "Undefined" in the HID spec: https://www.usb.org/sites/default/files/hut1_4.pdf. At least one known device has a usage of zero.

@dhalbert dhalbert requested review from tannewt and FoamyGuy August 20, 2025 16:28
Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you.

I didn't test, but did confirm that 0 is valid in the datasheet and saw that the user who found this initially reported that they tried it and it worked for the USB device they are trying to work with.

@dhalbert dhalbert merged commit 9a8f06b into adafruit:main Aug 20, 2025
516 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

usb_hid usage 0x00 needed but not allowed
2 participants