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

pull/2922/head
tychovrahe 1 year ago committed by TychoVrahe
parent 2456219d52
commit 923b1c42b0

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

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

Loading…
Cancel
Save