Skip to content

Commit 1eea6d3

Browse files
sportron-ledgeryogh333
authored andcommitted
[io] fix some issues
1 parent e46f830 commit 1eea6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ledger_device_sdk/src/ui/gadgets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ impl<'a> MultiPageMenu<'a> {
541541
loop {
542542
match self.comm.next_event() {
543543
io::Event::Button(button) => {
544-
if UxEvent::Event.request(self.comm) == BOLOS_UX_OK {
544+
if UxEvent::Event.request() == BOLOS_UX_OK {
545545
match button {
546546
BothButtonsRelease => return EventOrPageIndex::Index(index),
547547
b => {
@@ -573,7 +573,7 @@ impl<'a> MultiPageMenu<'a> {
573573
}
574574
io::Event::Command(ins) => return EventOrPageIndex::Event(io::Event::Command(ins)),
575575
io::Event::Ticker => {
576-
if UxEvent::Event.request(self.comm) != BOLOS_UX_OK {
576+
if UxEvent::Event.request() != BOLOS_UX_OK {
577577
// pin lock management
578578
UxEvent::block_and_get_event::<Temp>(self.comm);
579579
// notify Ticker event only when redisplay is required

0 commit comments

Comments
 (0)