1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

fix(cli): don't try to initialize device after wipe in bootloader

This commit is contained in:
tychovrahe 2023-03-23 18:04:28 +01:00 committed by TychoVrahe
parent 2456219d52
commit 923b1c42b0
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
Removed attempt to initialize the device after wipe in bootloader mode

View File

@ -101,6 +101,7 @@ def sd_protect(
@session
def wipe(client: "TrezorClient") -> "MessageType":
ret = client.call(messages.WipeDevice())
if not client.features.bootloader_mode:
client.init_device()
return ret