Correct USB HID usage range error message.

When an invalid usage was given, the error message incorrectly
referenced "usage_page".
This commit is contained in:
Sam Willcocks 2022-05-09 19:03:59 +01:00
parent aa625f5ce4
commit 4231eedf8e
1 changed files with 1 additions and 1 deletions

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 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;