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

feat(core): bootloader_ci: wipe device without confirmation

This commit is contained in:
Martin Milata 2021-01-23 23:05:40 +01:00
parent 79fad70b05
commit 2643ee2ab8
2 changed files with 2 additions and 12 deletions

View File

@ -3,7 +3,8 @@
This bootloader always runs into bootloader mode, waits for firmware to be
uploaded, then runs the firmware.
Storage is not erased. If you wish to erase storage, do it inside your test.
Storage is not erased. If you wish to erase storage you can send WipeDevice
message to the bootloader.
All user interaction is removed (no clicking or confirmations required)
so that it can be used in an automated way for tests.

View File

@ -114,17 +114,6 @@ static secbool bootloader_usb_loop(const vendor_header *const vhdr,
process_msg_Ping(USB_IFACE_NUM, msg_size, buf);
break;
case 5: // WipeDevice
ui_fadeout();
ui_screen_wipe_confirm();
ui_fadein();
int response = ui_user_input(INPUT_CONFIRM | INPUT_CANCEL);
if (INPUT_CANCEL == response) {
ui_fadeout();
ui_screen_info(secfalse, vhdr, hdr);
ui_fadein();
send_user_abort(USB_IFACE_NUM, "Wipe cancelled");
break;
}
ui_fadeout();
ui_screen_wipe();
ui_fadein();