mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-26 18:02:35 +00:00
Confirm to change U2F counter (#114)
This commit is contained in:
parent
9fe9ebc990
commit
d767e52055
@ -1067,8 +1067,15 @@ void fsm_msgWordAck(WordAck *msg)
|
|||||||
|
|
||||||
void fsm_msgSetU2FCounter(SetU2FCounter *msg)
|
void fsm_msgSetU2FCounter(SetU2FCounter *msg)
|
||||||
{
|
{
|
||||||
|
layoutDialogSwipe(&bmp_icon_question, "Cancel", "Confirm", NULL, "Do you want to set", "the U2F counter?", NULL, NULL, NULL, NULL);
|
||||||
|
if (!protectButton(ButtonRequestType_ButtonRequest_ProtectCall, false)) {
|
||||||
|
fsm_sendFailure(FailureType_Failure_ActionCancelled, "SetU2FCounter cancelled");
|
||||||
|
layoutHome();
|
||||||
|
return;
|
||||||
|
}
|
||||||
storage_setU2FCounter(msg->u2f_counter);
|
storage_setU2FCounter(msg->u2f_counter);
|
||||||
fsm_sendSuccess("U2F counter set");
|
fsm_sendSuccess("U2F counter set");
|
||||||
|
layoutHome();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG_LINK
|
#if DEBUG_LINK
|
||||||
|
Loading…
Reference in New Issue
Block a user