1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

core/features: add sd card and protection

This commit is contained in:
Tomas Susanka 2019-10-17 16:03:38 +02:00
parent f0cd99c545
commit 0f34b50c05

View File

@ -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.Features import Features
from trezor.messages.Success import Success
@ -63,6 +63,8 @@ def get_features() -> Features:
Capability.Shamir,
Capability.ShamirGroups,
]
f.sd_card_present = io.SDCard().present()
f.sd_protection = storage.device.get_sd_salt_auth_key() is not None
return f