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

chore(core): enable reboot-to-bootloader without experimental features

This commit is contained in:
grdddj 2023-02-21 15:36:06 +01:00 committed by Jiří Musil
parent fa34247c38
commit 107a7c93b1
2 changed files with 2 additions and 5 deletions

View File

@ -0,0 +1 @@
Add the possibility of rebooting the device into bootloader mode

View File

@ -7,14 +7,10 @@ if TYPE_CHECKING:
async def reboot_to_bootloader(ctx: Context, msg: RebootToBootloader) -> NoReturn: async def reboot_to_bootloader(ctx: Context, msg: RebootToBootloader) -> NoReturn:
import storage.device from trezor import io, loop, utils
from trezor import io, loop, utils, wire
from trezor.messages import Success from trezor.messages import Success
from trezor.ui.layouts import confirm_action from trezor.ui.layouts import confirm_action
if not storage.device.get_experimental_features():
raise wire.UnexpectedMessage("Experimental features are not enabled")
await confirm_action( await confirm_action(
ctx, ctx,
"reboot", "reboot",