We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83573d8 commit ec33697Copy full SHA for ec33697
ledger_secure_sdk_sys/src/seph.rs
@@ -34,6 +34,17 @@ pub fn send_general_status() {
34
}
35
36
37
+/// Function to ensure a I/O channel is not timeouting waiting
38
+/// for operations after a long time without SEPH packet exchanges
39
+pub fn heartbeat() {
40
+ send_general_status();
41
+ let mut spi_buffer = [0u8; 128];
42
+ seph_recv(&mut spi_buffer, 0);
43
+ while is_status_sent() {
44
45
+ }
46
+}
47
+
48
#[repr(u8)]
49
pub enum SephTags {
50
ScreenDisplayStatus = SEPROXYHAL_TAG_SCREEN_DISPLAY_STATUS as u8,
0 commit comments