Skip to content

Commit

Permalink
Reduce confirmation time
Browse files Browse the repository at this point in the history
  • Loading branch information
afilini committed Jun 15, 2024
1 parent 0037eb0 commit 830f279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firmware/src/handlers/fwupdate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ pub async fn handle_begin_fw_update(
.await
.unwrap();

let mut page = SummaryPage::new("Update FW?", "HOLD BTN TO BEGIN");
let mut page = SummaryPage::new_with_threshold("Update FW?", "HOLD BTN TO BEGIN", 70);
page.init_display(&mut peripherals.display)?;
page.draw_to(&mut peripherals.display)?;
peripherals.display.flush()?;
Expand Down
4 changes: 2 additions & 2 deletions gui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ impl_wrapper_page!(
impl<'s> TxOutputPage<'s> {
pub fn new(address: &'s Address, value: Amount) -> Self {
TxOutputPage(ConfirmBarPage::new(
100,
50,
TxOutputPageContent {
address,
value,
Expand Down Expand Up @@ -741,7 +741,7 @@ impl_wrapper_page!(TxSummaryPage, ConfirmBarPage<'static, TxSummaryPageContent>)
impl TxSummaryPage {
pub fn new(fees: Amount) -> Self {
TxSummaryPage(ConfirmBarPage::new_default_bar(
100,
80,
TxSummaryPageContent { fees },
"HOLD BTN TO SIGN TX",
"KEEP HOLDING...",
Expand Down

0 comments on commit 830f279

Please sign in to comment.