Skip to content

Commit

Permalink
Merge pull request #6370 from wlcx/fix_hid_usage_error
Browse files Browse the repository at this point in the history
Correct USB HID usage range error message.
  • Loading branch information
dhalbert authored May 10, 2022
2 parents aa625f5 + 4231eed commit 6d67028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-bindings/usb_hid/Device.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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_page);
mp_arg_validate_int_range(usage_arg, 1, 0xFFFF, MP_QSTR_usage);
const uint16_t usage = usage_arg;

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

0 comments on commit 6d67028

Please sign in to comment.