mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
chore(core): enable reboot-to-bootloader without experimental features
This commit is contained in:
parent
fa34247c38
commit
107a7c93b1
1
core/.changelog.d/2841.added
Normal file
1
core/.changelog.d/2841.added
Normal file
@ -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…
Reference in New Issue
Block a user