Skip to content

Commit 9a8f06b

Browse files
authored
Merge pull request #10577 from dhalbert/allow-hid-usage-zero
allow HID usage of zero; at least one device does this
2 parents 323264c + e0f5135 commit 9a8f06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/usb_hid/Device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args
9898
const uint16_t usage_page = usage_page_arg;
9999

100100
const mp_int_t usage_arg = args[ARG_usage].u_int;
101-
mp_arg_validate_int_range(usage_arg, 1, 0xFFFF, MP_QSTR_usage);
101+
mp_arg_validate_int_range(usage_arg, 0, 0xFFFF, MP_QSTR_usage);
102102
const uint16_t usage = usage_arg;
103103

104104
mp_obj_t report_ids = args[ARG_report_ids].u_obj;

0 commit comments

Comments
 (0)