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 {