mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +00:00
feat(core): bootloader_ci: wipe device without confirmation
This commit is contained in:
parent
79fad70b05
commit
2643ee2ab8
@ -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.
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user