Merge pull request #6370 from wlcx/fix_hid_usage_error

Correct USB HID usage range error message.
This commit is contained in:
Dan Halbert 2022-05-09 21:22:37 -04:00 committed by GitHub
commit 6d670287de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 uint16_t usage_page = usage_page_arg;
const mp_int_t usage_arg = args[ARG_usage].u_int; 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; const uint16_t usage = usage_arg;
mp_obj_t report_ids = args[ARG_report_ids].u_obj; mp_obj_t report_ids = args[ARG_report_ids].u_obj;