Skip to content

Commit

Permalink
[fix] compatibility with IO revamped SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Portron committed Jan 2, 2025
1 parent 24bcdae commit 98299e2
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 98299e2

Please sign in to comment.