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:
parent
2456219d52
commit
923b1c42b0
1
python/.changelog.d/2904.fixed
Normal file
1
python/.changelog.d/2904.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
Removed attempt to initialize the device after wipe in bootloader mode
|
@ -101,6 +101,7 @@ 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())
|
||||||
|
if not client.features.bootloader_mode:
|
||||||
client.init_device()
|
client.init_device()
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user