mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-08 07:38:11 +00:00
core/features: add sd card and protection
This commit is contained in:
parent
f0cd99c545
commit
0f34b50c05
@ -1,4 +1,4 @@
|
|||||||
from trezor import config, utils, wire
|
from trezor import config, io, utils, wire
|
||||||
from trezor.messages import Capability, MessageType
|
from trezor.messages import Capability, MessageType
|
||||||
from trezor.messages.Features import Features
|
from trezor.messages.Features import Features
|
||||||
from trezor.messages.Success import Success
|
from trezor.messages.Success import Success
|
||||||
@ -63,6 +63,8 @@ def get_features() -> Features:
|
|||||||
Capability.Shamir,
|
Capability.Shamir,
|
||||||
Capability.ShamirGroups,
|
Capability.ShamirGroups,
|
||||||
]
|
]
|
||||||
|
f.sd_card_present = io.SDCard().present()
|
||||||
|
f.sd_protection = storage.device.get_sd_salt_auth_key() is not None
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user