Skip to content

Commit

Permalink
Merge pull request #50 from LedgerHQ/fix-pending-review
Browse files Browse the repository at this point in the history
fix pending review screen not displaying
  • Loading branch information
cbouvet-ledger authored Aug 10, 2022
2 parents 026a1f5 + b6f4a36 commit 89e583f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/checks.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,15 @@ void check_audited_app(void) {
UX_DISPLAY_NEXT_ELEMENT();
UX_WAIT_DISPLAYED();

io_seproxyhal_general_status();

io_seproxyhal_general_status();
// We wait for the button callback pointer to be wiped, and we process the incoming MCU events in the
// meantime. This callback will be wiped within the actual 'ui_audited_elements_button' function,
// as soon as the user presses both buttons.
do {
io_seproxyhal_spi_recv(G_io_seproxyhal_spi_buffer, sizeof(G_io_seproxyhal_spi_buffer), 0);
io_seproxyhal_handle_event();
io_seproxyhal_general_status();
} while (io_seproxyhal_spi_is_status_sent() && G_ux.stack[slot].button_push_callback);

// We pop the reserved slot but we do not care about the returned value (since we do not need it for
Expand Down

0 comments on commit 89e583f

Please sign in to comment.