mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 02:58:57 +00:00
embed/bootloader: move USB_IFACE_NUM to main.c
This commit is contained in:
parent
0a15b03917
commit
8a409bd99a
@ -28,6 +28,8 @@ static const uint8_t * const BOOTLOADER_KEYS[] = {
|
||||
#endif
|
||||
};
|
||||
|
||||
#define USB_IFACE_NUM 0
|
||||
|
||||
static void usb_init_all(void) {
|
||||
|
||||
static const usb_dev_info_t dev_info = {
|
||||
|
@ -450,7 +450,7 @@ int process_msg_FirmwareUpload(uint8_t iface_num, uint32_t msg_size, uint8_t *bu
|
||||
ui_fadeout();
|
||||
ui_screen_info(secfalse, ¤t_vhdr, ¤t_hdr);
|
||||
ui_fadein();
|
||||
send_user_abort(USB_IFACE_NUM, "Firmware install cancelled");
|
||||
send_user_abort(iface_num, "Firmware install cancelled");
|
||||
return -4;
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
#define USB_TIMEOUT 100
|
||||
#define USB_PACKET_SIZE 64
|
||||
#define USB_IFACE_NUM 0
|
||||
|
||||
#define FIRMWARE_SECTORS_COUNT 13
|
||||
extern const uint8_t firmware_sectors[FIRMWARE_SECTORS_COUNT];
|
||||
|
Loading…
Reference in New Issue
Block a user