From 371d0589416d5a9f607b18685624fcbfc99c3cb2 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 19 Oct 2022 01:29:27 +0800 Subject: [PATCH] Update lib.rs use a scalar message, instead of a null-body memory message --- services/gam/src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/gam/src/lib.rs b/services/gam/src/lib.rs index 1c6ad6471..3cd3ca5c4 100644 --- a/services/gam/src/lib.rs +++ b/services/gam/src/lib.rs @@ -396,10 +396,9 @@ impl Gam { } /// Allows applications to "quit" and switch to a default application pub fn request_default_app(&self) -> Result<(), xous::Error> { - let defaultapp = DefaultApp { - }; - let buf = Buffer::into_buf(defaultapp).or(Err(xous::Error::InternalError))?; - buf.send(self.conn, Opcode::DefaultApp.to_u32().unwrap()).or(Err(xous::Error::InternalError)).map(|_|()) + send_message(self.conn, + Message::new_scalar(Opcode::DefaultApp.to_usize().unwrap(), 0, 0, 0, 0) + ).map(|_|()) } pub fn raise_menu(&self, menu_name_str: &str) -> Result<(), xous::Error> { let menu_name = GamActivation {