From dadcff9ff4dd79da02dc3e5277370dc587627913 Mon Sep 17 00:00:00 2001 From: emmanuelm41 Date: Mon, 7 Oct 2024 11:29:18 -0300 Subject: [PATCH] feat: add missing app os flags --- ledger_device_sdk/src/io.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ledger_device_sdk/src/io.rs b/ledger_device_sdk/src/io.rs index eee6d000..a301c0e9 100644 --- a/ledger_device_sdk/src/io.rs +++ b/ledger_device_sdk/src/io.rs @@ -581,6 +581,13 @@ fn handle_bolos_apdu(com: &mut Comm, ins: u8) { ); com.apdu_buffer[com.tx] = len as u8; com.tx += (1 + len) as usize; + + // to be fixed within io tasks + // return OS flags to notify of platform's global state (pin lock etc) + com.apdu_buffer[com.tx] = 1; // flags length + com.tx += 1; + com.apdu_buffer[com.tx] = os_flags() as u8; + com.tx += 1; } com.reply_ok(); }