mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +00:00
modtrezormsg: fix typo in Msg.init_usb
This commit is contained in:
parent
46f748205d
commit
afaefb7a13
@ -291,7 +291,7 @@ STATIC mp_obj_t mod_TrezorMsg_Msg_init_usb(mp_obj_t self, mp_obj_t usb_info, mp_
|
|||||||
if (!MP_OBJ_IS_TYPE(usb_info, &mod_TrezorMsg_USB_type)) {
|
if (!MP_OBJ_IS_TYPE(usb_info, &mod_TrezorMsg_USB_type)) {
|
||||||
mp_raise_TypeError("Expected USB type");
|
mp_raise_TypeError("Expected USB type");
|
||||||
}
|
}
|
||||||
mp_obj_USB_t *usb = MP_OBJ_TO_PTR(self);
|
mp_obj_USB_t *usb = MP_OBJ_TO_PTR(usb_info);
|
||||||
if (0 != usb_init(&usb->info)) {
|
if (0 != usb_init(&usb->info)) {
|
||||||
mp_raise_msg(&mp_type_RuntimeError, "Failed to initialize USB layer");
|
mp_raise_msg(&mp_type_RuntimeError, "Failed to initialize USB layer");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user