Skip to content

Commit 3d2f0e0

Browse files
authored
Merge pull request #311 from LedgerHQ/pr-io-revamp
IO revamp compat
2 parents 788ce5d + ae293c1 commit 3d2f0e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ui/display.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,18 @@ static bool io_ui_process(dispatcher_context_t *context, bool set_dirty) {
7676
// We are not waiting for the client's input, nor we are doing computations on the device
7777
io_clear_processing_timeout();
7878

79+
#ifdef REVAMPED_IO
80+
do {
81+
io_seproxyhal_io_heartbeat();
82+
} while (!g_ux_flow_ended);
83+
#else // !REVAMPED_IO
7984
io_seproxyhal_general_status();
8085
do {
8186
io_seproxyhal_spi_recv(G_io_seproxyhal_spi_buffer, sizeof(G_io_seproxyhal_spi_buffer), 0);
8287
io_seproxyhal_handle_event();
8388
io_seproxyhal_general_status();
8489
} while (io_seproxyhal_spi_is_status_sent() && !g_ux_flow_ended);
90+
#endif // !REVAMPED_IO
8591

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

0 commit comments

Comments
 (0)