mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 13:42:41 +00:00
fsm: add for button before Recovery device
This commit is contained in:
parent
5ae04c17c5
commit
559a700fb0
@ -1212,6 +1212,13 @@ void fsm_msgRecoveryDevice(RecoveryDevice *msg)
|
|||||||
|
|
||||||
CHECK_PARAM(!msg->has_word_count || msg->word_count == 12 || msg->word_count == 18 || msg->word_count == 24, _("Invalid word count"));
|
CHECK_PARAM(!msg->has_word_count || msg->word_count == 12 || msg->word_count == 18 || msg->word_count == 24, _("Invalid word count"));
|
||||||
|
|
||||||
|
layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), NULL, _("Do you really want to"), _("recover the device?"), NULL, NULL, NULL, NULL);
|
||||||
|
if (!protectButton(ButtonRequestType_ButtonRequest_ProtectCall, false)) {
|
||||||
|
fsm_sendFailure(FailureType_Failure_ActionCancelled, NULL);
|
||||||
|
layoutHome();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
recovery_init(
|
recovery_init(
|
||||||
msg->has_word_count ? msg->word_count : 12,
|
msg->has_word_count ? msg->word_count : 12,
|
||||||
msg->has_passphrase_protection && msg->passphrase_protection,
|
msg->has_passphrase_protection && msg->passphrase_protection,
|
||||||
|
Loading…
Reference in New Issue
Block a user