mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
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:
parent
aabd2d242d
commit
14f661f565
3 changed files with 4 additions and 4 deletions
|
|
@ -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> {
|
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(|_| ())
|
// send_message(cid, api::Opcode::Wf200PdsLine(line).into()).map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ impl XousLoggerBacking {
|
||||||
if let Some(ref mut buf) = self.buffer {
|
if let Some(ref mut buf) = self.buffer {
|
||||||
buf.clear();
|
buf.clear();
|
||||||
write!(buf, "{} - {}", record.level(), record.args()).unwrap();
|
write!(buf, "{} - {}", record.level(), record.args()).unwrap();
|
||||||
buf.lend(self.conn, 1).unwrap();
|
buf.lend(self.conn).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,12 @@ impl<const N: usize> String<N> {
|
||||||
pub fn lend(
|
pub fn lend(
|
||||||
&self,
|
&self,
|
||||||
connection: CID,
|
connection: CID,
|
||||||
id: crate::MessageId,
|
// id: crate::MessageId,
|
||||||
) -> core::result::Result<Result, Error> {
|
) -> core::result::Result<Result, Error> {
|
||||||
|
|
||||||
let mut writer = rkyv::ArchiveBuffer::new(crate::XousBuffer::new( N ));
|
let mut writer = rkyv::ArchiveBuffer::new(crate::XousBuffer::new( N ));
|
||||||
let pos = writer.archive(self).expect("xous::String -- couldn't archive self");
|
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
|
// note that "id" is actually used as the position into the rkyv buffer
|
||||||
xous_buffer.lend(connection, pos as u32)
|
xous_buffer.lend(connection, pos as u32)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue