From b2f169c55ebe9834d22cbb5a5458eebdec003983 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 14 Jul 2022 04:20:14 +0800 Subject: [PATCH] fix unpack signature on init flow to allow for both block and nonblock --- services/root-keys/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/root-keys/src/main.rs b/services/root-keys/src/main.rs index b4e14ce20..760a9d9f7 100644 --- a/services/root-keys/src/main.rs +++ b/services/root-keys/src/main.rs @@ -509,7 +509,7 @@ fn main() -> ! { }), // UX flow opcodes - Some(Opcode::UxTryInitKeys) => msg_scalar_unpack!(msg, _, _, _, _, { + Some(Opcode::UxTryInitKeys) => { match msg.body { xous::Message::BlockingScalar(_) => { deferred_response = Some(msg.sender); @@ -602,7 +602,7 @@ fn main() -> ! { log::info!("{}ROOTKEY.BOOTPW,{}", xous::BOOKEND_START, xous::BOOKEND_END); rootkeys_modal.activate(); } - }), + }, Some(Opcode::UxInitBootPasswordReturn) => { // assume: // - setup_key_init has also been called (exactly once, before anything happens)