Skip to content

Commit

Permalink
Merge pull request #475 from LedgerHQ/xch/fix-lnx-lnsp-UX-WAIT-DISPLAYED
Browse files Browse the repository at this point in the history
lib_ux/include/ux.h: Fix LNX and LNSP version of UX_WAIT_DISPLAYED()
  • Loading branch information
xchapron-ledger authored Nov 28, 2023
2 parents 606d0e0 + 1b75b43 commit 3fe9761
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib_ux/include/ux.h
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ extern bolos_ux_params_t G_ux_params;
* Macro to process sequentially display a screen. The call finishes when the UX is completely
* displayed, and the state of the MCU <-> SE exchanges is the same as before this macro call.
*/
#ifdef HAVE_SE_SCREEN
#define UX_WAIT_DISPLAYED() \
while (!UX_DISPLAYED()) { \
UX_DISPLAY_NEXT_ELEMENT(); \
}
#else
#define UX_WAIT_DISPLAYED() \
while (!UX_DISPLAYED()) { \
/* We wait for the MCU event (should indicate display processed for a bagl element) */ \
Expand All @@ -594,6 +600,7 @@ extern bolos_ux_params_t G_ux_params;
io_seproxyhal_general_status(); \
/* We wait for an ack of the MCU. */ \
io_seproxyhal_spi_recv(G_io_seproxyhal_spi_buffer, sizeof(G_io_seproxyhal_spi_buffer), 0);
#endif

/**
* Process button push events. Application's button event handler is called only if the ux app does
Expand Down

0 comments on commit 3fe9761

Please sign in to comment.