Skip to content

Commit

Permalink
Fix IO bug : pending event flag was not properly set before entering …
Browse files Browse the repository at this point in the history
…the check event function.
  • Loading branch information
agrojean-ledger committed May 22, 2024
1 parent a332fba commit ab92316
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ledger_device_sdk/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ impl Comm {

if unsafe { G_io_app.apdu_state } != APDU_IDLE && unsafe { G_io_app.apdu_length } > 0 {
self.rx = unsafe { G_io_app.apdu_length as usize };
self.event_pending = true;
return self.check_event();
}
None
Expand Down

0 comments on commit ab92316

Please sign in to comment.