Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrojean-ledger committed May 27, 2024
1 parent 2c36722 commit 988edb4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ledger_device_sdk/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,6 @@ impl Comm {
T: TryFrom<ApduHeader>,
Reply: From<<T as TryFrom<ApduHeader>>::Error>,
{
// if self.event_pending {
// self.event_pending = false;
// if let Some(value) = self.check_event() {
// return value;
// }
// }

let mut spi_buffer = [0u8; 128];

unsafe {
Expand Down Expand Up @@ -285,21 +278,8 @@ impl Comm {
T: TryFrom<ApduHeader>,
Reply: From<<T as TryFrom<ApduHeader>>::Error>,
{
// if self.event_pending {
// let event: Option<Event<T>> = self.check_event();
// if event.is_some() {
// return true;
// }
// }

let mut spi_buffer = [0u8; 128];

// unsafe {
// G_io_app.apdu_state = APDU_IDLE;
// G_io_app.apdu_media = IO_APDU_MEDIA_NONE;
// G_io_app.apdu_length = 0;
// }

// Signal end of command stream from SE to MCU
// And prepare reception
if !sys_seph::is_status_sent() {
Expand Down

0 comments on commit 988edb4

Please sign in to comment.