Skip to content

Commit 99b1f53

Browse files
committed
Update function's name which show status + home screen
1 parent 1d8aed0 commit 99b1f53

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl TryFrom<ApduHeader> for Instruction {
129129
}
130130

131131
#[cfg(any(target_os = "stax", target_os = "flex"))]
132-
fn show_status_if_needed(ins: &Instruction, tx_ctx: &mut TxContext, status: &AppSW) {
132+
fn show_status_and_home_if_needed(ins: &Instruction, tx_ctx: &mut TxContext, status: &AppSW) {
133133
let (show_status, status_type) = match (ins, status) {
134134
(Instruction::GetPubkey { display: true }, AppSW::Deny | AppSW::Ok) => {
135135
(true, StatusType::Address)
@@ -146,7 +146,7 @@ fn show_status_if_needed(ins: &Instruction, tx_ctx: &mut TxContext, status: &App
146146
.status_type(status_type)
147147
.show(success);
148148

149-
// call display() to show home and setting screen
149+
// call home.show_and_return() to show home and setting screen
150150
tx_ctx.home.show_and_return();
151151
}
152152
}
@@ -180,7 +180,7 @@ extern "C" fn sample_main() {
180180
sw
181181
}
182182
};
183-
show_status_if_needed(&ins, &mut tx_ctx, &status);
183+
show_status_and_home_if_needed(&ins, &mut tx_ctx, &status);
184184
}
185185
}
186186

0 commit comments

Comments
 (0)