fix incorrect &mut self in library call

This commit is contained in:
bunnie 2021-09-16 03:53:36 +08:00
parent 9aef2eb7b4
commit 21fb59c4d9

View file

@ -66,7 +66,7 @@ impl Susres {
})
}
pub fn initiate_suspend(&mut self) -> Result<(), xous::Error> {
pub fn initiate_suspend(&self) -> Result<(), xous::Error> {
log::trace!("suspend initiated");
send_message(self.conn,
Message::new_scalar(Opcode::SuspendRequest.to_usize().unwrap(), 0, 0, 0, 0)