xous: remove id field from lend()

This argument is no longer used.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-02-17 20:54:08 +08:00
parent aabd2d242d
commit 14f661f565
3 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ pub fn get_ec_git_rev(cid: CID) -> Result<(u32, bool), Error> {
}
pub fn send_pds_line(cid: CID, s: &xous::String<512>) -> Result<(), Error> {
s.lend(cid, ComState::WFX_PDS_LINE_SET.verb as _).map( |_| ())
s.lend(cid /*, ComState::WFX_PDS_LINE_SET.verb as _ */).map( |_| ())
// send_message(cid, api::Opcode::Wf200PdsLine(line).into()).map(|_| ())
}

View file

@ -41,7 +41,7 @@ impl XousLoggerBacking {
if let Some(ref mut buf) = self.buffer {
buf.clear();
write!(buf, "{} - {}", record.level(), record.args()).unwrap();
buf.lend(self.conn, 1).unwrap();
buf.lend(self.conn).unwrap();
}
}
}

View file

@ -49,12 +49,12 @@ impl<const N: usize> String<N> {
pub fn lend(
&self,
connection: CID,
id: crate::MessageId,
// id: crate::MessageId,
) -> core::result::Result<Result, Error> {
let mut writer = rkyv::ArchiveBuffer::new(crate::XousBuffer::new( N ));
let pos = writer.archive(self).expect("xous::String -- couldn't archive self");
let mut xous_buffer = writer.into_inner();
let xous_buffer = writer.into_inner();
// note that "id" is actually used as the position into the rkyv buffer
xous_buffer.lend(connection, pos as u32)