mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
src/apps/homescreen: add missing fields to Features
This commit is contained in:
parent
f9b16cfa34
commit
2523442eb3
@ -38,6 +38,11 @@ def set_seed(seed, passphrase):
|
|||||||
_seed, _passphrase = seed, _passphrase
|
_seed, _passphrase = seed, _passphrase
|
||||||
|
|
||||||
|
|
||||||
|
def has_passphrase():
|
||||||
|
global _passphrase
|
||||||
|
return _passphrase is not None
|
||||||
|
|
||||||
|
|
||||||
def clear():
|
def clear():
|
||||||
global _seed, _passphrase
|
global _seed, _passphrase
|
||||||
global _state_salt
|
global _state_salt
|
||||||
|
@ -16,21 +16,22 @@ async def respond_Features(ctx, msg):
|
|||||||
|
|
||||||
f = Features()
|
f = Features()
|
||||||
f.vendor = 'trezor.io'
|
f.vendor = 'trezor.io'
|
||||||
f.revision = symbol('GITREV')
|
|
||||||
f.major_version = symbol('VERSION_MAJOR')
|
f.major_version = symbol('VERSION_MAJOR')
|
||||||
f.minor_version = symbol('VERSION_MINOR')
|
f.minor_version = symbol('VERSION_MINOR')
|
||||||
f.patch_version = symbol('VERSION_PATCH')
|
f.patch_version = symbol('VERSION_PATCH')
|
||||||
f.model = 'T'
|
|
||||||
f.coins = coins.COINS
|
|
||||||
|
|
||||||
f.device_id = storage.get_device_id()
|
f.device_id = storage.get_device_id()
|
||||||
f.label = storage.get_label()
|
|
||||||
f.initialized = storage.is_initialized()
|
|
||||||
f.passphrase_protection = storage.has_passphrase()
|
|
||||||
f.pin_protection = config.has_pin()
|
f.pin_protection = config.has_pin()
|
||||||
f.flags = storage.get_flags()
|
f.passphrase_protection = storage.has_passphrase()
|
||||||
f.language = 'english'
|
f.language = 'english'
|
||||||
|
f.label = storage.get_label()
|
||||||
|
f.coins = coins.COINS
|
||||||
|
f.initialized = storage.is_initialized()
|
||||||
|
f.revision = symbol('GITREV')
|
||||||
|
f.pin_cached = config.has_pin()
|
||||||
|
f.passphrase_cached = cache.has_passphrase()
|
||||||
|
f.needs_backup = storage.needs_backup()
|
||||||
|
f.flags = storage.get_flags()
|
||||||
|
f.model = 'T'
|
||||||
f.state = cache.get_state()
|
f.state = cache.get_state()
|
||||||
|
|
||||||
return f
|
return f
|
||||||
|
Loading…
Reference in New Issue
Block a user