Skip to content

Commit bc24843

Browse files
committed
feat: add missing app os flags
1 parent 4c78813 commit bc24843

File tree

1 file changed

+7
-0
lines changed
  • ledger_device_sdk/src

1 file changed

+7
-0
lines changed

ledger_device_sdk/src/io.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,13 @@ fn handle_bolos_apdu(com: &mut Comm, ins: u8) {
581581
);
582582
com.apdu_buffer[com.tx] = len as u8;
583583
com.tx += (1 + len) as usize;
584+
585+
// to be fixed within io tasks
586+
// return OS flags to notify of platform's global state (pin lock etc)
587+
com.apdu_buffer[com.tx] = 1; // flags length
588+
com.tx += 1;
589+
com.apdu_buffer[com.tx] = os_flags() as u8;
590+
com.tx += 1;
584591
}
585592
com.reply_ok();
586593
}

0 commit comments

Comments
 (0)