Skip to content

allow HID usage of zero; at least one device does this #10577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2025

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