1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-21 05:58:09 +00:00

WIP - PIN starts at digit 0

This commit is contained in:
grdddj 2022-11-03 15:39:33 +01:00
parent ee867fbeb7
commit 51a65b9c26

View File

@ -96,8 +96,9 @@ impl PinEntry {
let choices = ChoiceFactoryPIN::new(prompt);
Self {
// Starting at the digit 0
choice_page: ChoicePage::new(choices)
.with_initial_page_counter(PROMPT_INDEX as u8)
.with_initial_page_counter(PROMPT_INDEX as u8 + 1)
.with_carousel(),
pin_dots: Child::new(ChangingTextLine::center_mono(String::new())),
show_real_pin: false,