Skip to content

Commit

Permalink
feat: add missing app os flags
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Oct 7, 2024
1 parent 4c78813 commit bc24843
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ledger_device_sdk/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit bc24843

Please sign in to comment.