embed/bootloader: move USB_IFACE_NUM to main.c

pull/25/head
Pavol Rusnak 6 years ago
parent 0a15b03917
commit 8a409bd99a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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, &current_vhdr, &current_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…
Cancel
Save