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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shared-bindings/usb_hid/Device.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args
const uint16_t usage_page = usage_page_arg;

const mp_int_t usage_arg = args[ARG_usage].u_int;
mp_arg_validate_int_range(usage_arg, 1, 0xFFFF, MP_QSTR_usage);
mp_arg_validate_int_range(usage_arg, 0, 0xFFFF, MP_QSTR_usage);
const uint16_t usage = usage_arg;

mp_obj_t report_ids = args[ARG_report_ids].u_obj;
Expand Down