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.
This commit is contained in:
bunnie 2022-07-19 04:08:39 +08:00
parent 93ebdbcc4f
commit 907ac038ff

View file

@ -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")))]