mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
Update lib.rs
use a scalar message, instead of a null-body memory message
This commit is contained in:
parent
cf02c3c3b6
commit
371d058941
1 changed files with 3 additions and 4 deletions
|
|
@ -396,10 +396,9 @@ impl Gam {
|
||||||
}
|
}
|
||||||
/// Allows applications to "quit" and switch to a default application
|
/// Allows applications to "quit" and switch to a default application
|
||||||
pub fn request_default_app(&self) -> Result<(), xous::Error> {
|
pub fn request_default_app(&self) -> Result<(), xous::Error> {
|
||||||
let defaultapp = DefaultApp {
|
send_message(self.conn,
|
||||||
};
|
Message::new_scalar(Opcode::DefaultApp.to_usize().unwrap(), 0, 0, 0, 0)
|
||||||
let buf = Buffer::into_buf(defaultapp).or(Err(xous::Error::InternalError))?;
|
).map(|_|())
|
||||||
buf.send(self.conn, Opcode::DefaultApp.to_u32().unwrap()).or(Err(xous::Error::InternalError)).map(|_|())
|
|
||||||
}
|
}
|
||||||
pub fn raise_menu(&self, menu_name_str: &str) -> Result<(), xous::Error> {
|
pub fn raise_menu(&self, menu_name_str: &str) -> Result<(), xous::Error> {
|
||||||
let menu_name = GamActivation {
|
let menu_name = GamActivation {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue