Skip to content

Commit

Permalink
Fix freeze on slow/unresponsive APDU transport
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger committed Feb 9, 2023
1 parent 3e724ef commit 87f2334
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src_bagl/ui_flow_signMessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ static void dummy_pre_cb(void) {
static void dummy_post_cb(void) {
if (ui_pos == UI_191_POS_QUESTION) {
continue_displaying_message();
// temporarily disable button clicks, they will be re-enabled as soon as new data
// is received and the page is redrawn with ux_flow_init()
G_ux.stack[0].button_push_callback = NULL;
} else // UI_191_END
{
ui_191_switch_to_message_end();
Expand Down Expand Up @@ -55,6 +58,7 @@ UX_STEP_CB(
#else
nnn,
#endif
G_ux.stack[0].button_push_callback = NULL; // disable button clicks
skip_rest_of_message(),
{
#ifndef TARGET_NANOS
Expand Down

0 comments on commit 87f2334

Please sign in to comment.