Skip to content

Commit 6d67028

Browse files
authored
Merge pull request #6370 from wlcx/fix_hid_usage_error
Correct USB HID usage range error message.
2 parents aa625f5 + 4231eed commit 6d67028

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
@@ -107,7 +107,7 @@ STATIC mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args
107107
const uint16_t usage_page = usage_page_arg;
108108

109109
const mp_int_t usage_arg = args[ARG_usage].u_int;
110-
mp_arg_validate_int_range(usage_arg, 1, 0xFFFF, MP_QSTR_usage_page);
110+
mp_arg_validate_int_range(usage_arg, 1, 0xFFFF, MP_QSTR_usage);
111111
const uint16_t usage = usage_arg;
112112

113113
mp_obj_t report_ids = args[ARG_report_ids].u_obj;

0 commit comments

Comments
 (0)