Skip to content

Commit

Permalink
send distinguishable button requests for applying auto_lock_delay and…
Browse files Browse the repository at this point in the history
… U2FCounter
  • Loading branch information
solipsis authored and keepkeyjon committed Nov 8, 2018
1 parent 11490ff commit d945442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deps/device-protocol
Submodule device-protocol updated 1 files
+2 −0 types.proto
4 changes: 2 additions & 2 deletions lib/firmware/fsm_msg_common.h
Expand Up @@ -408,15 +408,15 @@ void fsm_msgApplySettings(ApplySettings *msg)
}

if (msg->has_auto_lock_delay_ms) {
if (!confirm(ButtonRequestType_ButtonRequest_Other,
if (!confirm(ButtonRequestType_ButtonRequest_AutoLockDelayMs,
"Change auto-lock delay", "Do you want to set the auto-lock delay to %" PRIu32 " seconds?",
msg->auto_lock_delay_ms / 1000)) {
goto apply_settings_cancelled;
}
}

if (msg->has_u2f_counter) {
if (!confirm(ButtonRequestType_ButtonRequest_Other,
if (!confirm(ButtonRequestType_ButtonRequest_U2FCounter,
"Set U2F Counter", "Do you want to set the U2F Counter to %" PRIu32 "?",
msg->u2f_counter)) {
goto apply_settings_cancelled;
Expand Down

0 comments on commit d945442

Please sign in to comment.