1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-20 13:38:11 +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); let choices = ChoiceFactoryPIN::new(prompt);
Self { Self {
// Starting at the digit 0
choice_page: ChoicePage::new(choices) choice_page: ChoicePage::new(choices)
.with_initial_page_counter(PROMPT_INDEX as u8) .with_initial_page_counter(PROMPT_INDEX as u8 + 1)
.with_carousel(), .with_carousel(),
pin_dots: Child::new(ChangingTextLine::center_mono(String::new())), pin_dots: Child::new(ChangingTextLine::center_mono(String::new())),
show_real_pin: false, show_real_pin: false,