mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 20:38:10 +00:00
src/apps/debug: don't erase storage on debug in emulator
This commit is contained in:
parent
9ddb1b9280
commit
cc25069064
@ -4,7 +4,7 @@ if not __debug__:
|
||||
halt("debug mode inactive")
|
||||
|
||||
if __debug__:
|
||||
from trezor import loop
|
||||
from trezor import loop, utils
|
||||
from trezor.messages import MessageType
|
||||
from trezor.messages.DebugLinkState import DebugLinkState
|
||||
from trezor.ui import confirm, swipe
|
||||
@ -38,8 +38,9 @@ if __debug__:
|
||||
return m
|
||||
|
||||
def boot():
|
||||
# wipe storage when debug build is used
|
||||
storage.wipe()
|
||||
# wipe storage when debug build is used on real hardware
|
||||
if not utils.EMULATOR:
|
||||
storage.wipe()
|
||||
|
||||
register(
|
||||
MessageType.DebugLinkDecision, protobuf_workflow, dispatch_DebugLinkDecision
|
||||
|
Loading…
Reference in New Issue
Block a user