1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-24 23:48:13 +00:00

fixup! refactor(core): improve conditional compilations based on model

This commit is contained in:
tychovrahe 2023-03-28 12:14:19 +02:00
parent d730d13b9e
commit d7d33f41a7

View File

@ -52,7 +52,7 @@ def _find_message_handler_module(msg_type: int) -> str:
elif msg_type == MessageType.RebootToBootloader:
return "apps.management.reboot_to_bootloader"
if utils.MODEL in ("T",) and msg_type == MessageType.SdProtect:
if utils.USE_SD_CARD and msg_type == MessageType.SdProtect:
return "apps.management.sd_protect"
# bitcoin