1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

modtrezormsg: fix typo in Msg.init_usb

This commit is contained in:
Jan Pochyla 2017-04-20 16:27:45 +02:00
parent 46f748205d
commit afaefb7a13

View File

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