1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-22 18:19:03 +00:00

bootloader: cleanup usb on firmware upload success before jumping to firmware ()

This commit is contained in:
mcudev 2017-10-24 12:45:02 -04:00 committed by Pavol Rusnak
parent ebaeb52b62
commit b922579173

View File

@ -226,6 +226,8 @@ bool bootloader_loop(void)
display_done(3); hal_delay(1000);
display_done(2); hal_delay(1000);
display_done(1); hal_delay(1000);
usb_stop();
usb_deinit();
display_fade(BACKLIGHT_NORMAL, 0, 500);
return true; // jump to firmware
}