From 907ac038ffe371083fbacaf5aed1e8695d9bbb4f Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 19 Jul 2022 04:08:39 +0800 Subject: [PATCH] make keyboard observer send messages falliable this is a partial work around for the status server queue overflow problem on boot while handling user interactions in the auto-update flow. --- services/keyboard/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/keyboard/src/main.rs b/services/keyboard/src/main.rs index 96c7d3386..6cfc83d9a 100644 --- a/services/keyboard/src/main.rs +++ b/services/keyboard/src/main.rs @@ -964,7 +964,7 @@ fn main() -> ! { if observer_conn.is_some() && observer_op.is_some() { log::trace!("sending observer key"); - xous::send_message(observer_conn.unwrap(), + xous::try_send_message(observer_conn.unwrap(), xous::Message::new_scalar( observer_op.unwrap(), 0, @@ -972,7 +972,7 @@ fn main() -> ! { 0, 0, ) - ).expect("couldn't send key codes to listener"); + ).ok(); } #[cfg(all(feature="debuginject", not(feature="rawserial")))]