diff --git a/.gitignore b/.gitignore index 96ef6c0b..50db9d19 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ +# Rust /target Cargo.lock + +# Editors +.idea/ +.vscode/ \ No newline at end of file diff --git a/src/uxapp.rs b/src/uxapp.rs index a173c67c..44fdce27 100644 --- a/src/uxapp.rs +++ b/src/uxapp.rs @@ -35,11 +35,11 @@ impl UxEvent { match self { Self::ValidatePIN => Self::block(), - _ => BOLOS_UX_OK, + _ => unsafe { os_sched_last_status(TASK_BOLOS_UX as u32) as u32 }, } } - fn block() -> u32 { + pub fn block() -> u32 { let mut ret = unsafe { os_sched_last_status(TASK_BOLOS_UX as u32) } as u32; while ret == BOLOS_UX_IGNORE || ret == BOLOS_UX_CONTINUE { if unsafe { os_sched_is_running(TASK_SUBTASKS_START as u32) } != BOLOS_TRUE as i8 {