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

pull/2842/head
grdddj 1 year ago committed by Jiří Musil
parent fa34247c38
commit 107a7c93b1

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

@ -7,14 +7,10 @@ if TYPE_CHECKING:
async def reboot_to_bootloader(ctx: Context, msg: RebootToBootloader) -> NoReturn:
import storage.device
from trezor import io, loop, utils, wire
from trezor import io, loop, utils
from trezor.messages import Success
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(
ctx,
"reboot",

Loading…
Cancel
Save