mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
apps.common.storage: fix device_id init
This commit is contained in:
parent
ad7356b67c
commit
2a58ca986f
@ -70,7 +70,7 @@ def const_equal(a: bytes, b: bytes) -> bool:
|
||||
|
||||
def get_device_id() -> str:
|
||||
dev_id = config_get(_DEVICE_ID).decode()
|
||||
if dev_id is None:
|
||||
if not dev_id:
|
||||
dev_id = new_device_id()
|
||||
config_set(_DEVICE_ID, dev_id.encode())
|
||||
return dev_id
|
||||
@ -133,6 +133,7 @@ def load_settings(language: str=None,
|
||||
|
||||
|
||||
def wipe():
|
||||
lock()
|
||||
config.wipe()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user