1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 20:38: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,7 +101,8 @@ def sd_protect(
@session @session
def wipe(client: "TrezorClient") -> "MessageType": def wipe(client: "TrezorClient") -> "MessageType":
ret = client.call(messages.WipeDevice()) ret = client.call(messages.WipeDevice())
client.init_device() if not client.features.bootloader_mode:
client.init_device()
return ret return ret