Merge pull request #4745 from ajs256/lowercase_error

Make two error messages in USB sentence case
This commit is contained in:
Scott Shawcroft 2021-05-11 10:56:30 -07:00 committed by GitHub
commit de26e3ac7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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 ""

View File

@ -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"));
}
}