Merge pull request #4745 from ajs256/lowercase_error
Make two error messages in USB sentence case
This commit is contained in:
commit
de26e3ac7b
|
@ -2182,11 +2182,7 @@ msgid "UART write error"
|
|||
msgstr ""
|
||||
|
||||
#: shared-module/usb_hid/Device.c
|
||||
msgid "USB Busy"
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/usb_hid/Device.c
|
||||
msgid "USB Error"
|
||||
msgid "USB busy"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
|
@ -2197,6 +2193,10 @@ msgstr ""
|
|||
msgid "USB devices specify too many interface names."
|
||||
msgstr ""
|
||||
|
||||
#: shared-module/usb_hid/Device.c
|
||||
msgid "USB error"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/_bleio/UUID.c
|
||||
msgid "UUID integer value must be 0-0xffff"
|
||||
msgstr ""
|
||||
|
|
|
@ -204,13 +204,13 @@ void common_hal_usb_hid_device_send_report(usb_hid_device_obj_t *self, uint8_t *
|
|||
}
|
||||
|
||||
if (!tud_hid_ready()) {
|
||||
mp_raise_msg(&mp_type_OSError, translate("USB Busy"));
|
||||
mp_raise_msg(&mp_type_OSError, translate("USB busy"));
|
||||
}
|
||||
|
||||
memcpy(self->in_report_buffer, report, len);
|
||||
|
||||
if (!tud_hid_report(self->report_id, self->in_report_buffer, len)) {
|
||||
mp_raise_msg(&mp_type_OSError, translate("USB Error"));
|
||||
mp_raise_msg(&mp_type_OSError, translate("USB error"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue