Skip to content

Commit

Permalink
Merge pull request #311 from LedgerHQ/pr-io-revamp
Browse files Browse the repository at this point in the history
IO revamp compat
  • Loading branch information
bigspider authored Jan 6, 2025
2 parents 788ce5d + ae293c1 commit 3d2f0e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,18 @@ static bool io_ui_process(dispatcher_context_t *context, bool set_dirty) {
// We are not waiting for the client's input, nor we are doing computations on the device
io_clear_processing_timeout();

#ifdef REVAMPED_IO
do {
io_seproxyhal_io_heartbeat();
} while (!g_ux_flow_ended);
#else // !REVAMPED_IO
io_seproxyhal_general_status();
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_flow_ended);
#endif // !REVAMPED_IO

// We're back at work, we want to show the "Processing..." screen when appropriate
io_start_processing_timeout();
Expand Down

0 comments on commit 3d2f0e0

Please sign in to comment.