diff --git a/ledger_device_sdk/src/io.rs b/ledger_device_sdk/src/io.rs index eee6d00..f80f3e7 100644 --- a/ledger_device_sdk/src/io.rs +++ b/ledger_device_sdk/src/io.rs @@ -23,6 +23,7 @@ pub enum StatusWords { UserCancelled = 0x6e04, Unknown = 0x6d00, Panic = 0xe000, + DeviceLocked = 0x5515, } #[derive(Debug)] diff --git a/ledger_device_sdk/src/ui/gadgets.rs b/ledger_device_sdk/src/ui/gadgets.rs index 464f5b6..bb2d554 100644 --- a/ledger_device_sdk/src/ui/gadgets.rs +++ b/ledger_device_sdk/src/ui/gadgets.rs @@ -603,7 +603,8 @@ impl<'a> MultiPageMenu<'a> { // pin lock management let (_res, ins) = UxEvent::block_and_get_event::(self.comm); if let Some(_e) = ins { - self.comm.reply::(io::StatusWords::Unknown); + self.comm + .reply::(io::StatusWords::DeviceLocked); } // notify Ticker event only when redisplay is required return EventOrPageIndex::Event(io::Event::Ticker);