fix error message
This commit is contained in:
parent
d4ec3e2927
commit
de8f7b11ef
@ -166,7 +166,7 @@ msgid "%q should be an int"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/usb_hid/Device.c
|
||||
msgid "%q with a 0 must of length 1"
|
||||
msgid "%q with a report ID of 0 must be of length 1"
|
||||
msgstr ""
|
||||
|
||||
#: py/bc.c py/objnamedtuple.c
|
||||
|
@ -148,7 +148,7 @@ STATIC mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args
|
||||
}
|
||||
|
||||
if (report_ids_array[0] == 0 && report_ids_count > 1) {
|
||||
mp_raise_ValueError_varg(translate("%q with a 0 must of length 1"), MP_QSTR_report_ids);
|
||||
mp_raise_ValueError_varg(translate("%q with a report ID of 0 must be of length 1"), MP_QSTR_report_ids);
|
||||
}
|
||||
|
||||
common_hal_usb_hid_device_construct(
|
||||
|
Loading…
x
Reference in New Issue
Block a user