mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +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)) {
|
||||
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)) {
|
||||
mp_raise_msg(&mp_type_RuntimeError, "Failed to initialize USB layer");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user