Skip to content

Commit e9f7909

Browse files
Merge pull request #1005 from LedgerHQ/spo-fix-heartbeat
[io legacy]: Make io_heartbeat great again
2 parents 50f2a7e + a64909c commit e9f7909

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

io_legacy/src/os_io_legacy.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ void io_seproxyhal_io_heartbeat(void)
147147
case OS_IO_PACKET_TYPE_USB_U2F_HID_APDU:
148148
case OS_IO_PACKET_TYPE_BLE_APDU:
149149
case OS_IO_PACKET_TYPE_NFC_APDU:
150-
// TODO_IO : temporary until ragger issue is solved
151-
// os_io_tx_cmd(G_io_rx_buffer[0], err_buffer, sizeof(err_buffer), 0);
150+
os_io_tx_cmd(G_io_rx_buffer[0], err_buffer, sizeof(err_buffer), 0);
152151
break;
153152

154153
default:

lib_standard_app/io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ WEAK int io_recv_command()
107107
int status = 0;
108108

109109
if (need_to_start_io) {
110+
#ifndef USE_OS_IO_STACK
110111
io_seproxyhal_io_heartbeat();
111112
io_seproxyhal_io_heartbeat();
112113
io_seproxyhal_io_heartbeat();
114+
#endif // USE_OS_IO_STACK
113115
os_io_start();
114116
need_to_start_io = 0;
115117
}

0 commit comments

Comments
 (0)