some tweaks and test update
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
2023-07-10 23:29:55 +02:00
parent eca7e09d19
commit c0e70daf58
2 changed files with 7 additions and 7 deletions

View File

@@ -790,6 +790,10 @@ impl<'raw_data> PusTcReader<'raw_data> {
Ok((pus_tc, total_len))
}
pub fn raw_data(&self) -> &[u8] {
self.raw_data
}
pub fn len_packed(&self) -> usize {
self.sp_header.total_len()
}
@@ -854,8 +858,7 @@ impl PartialEq<PusTcReader<'_>> for PusTcCreator<'_> {
#[cfg(all(test, feature = "std"))]
mod tests {
use crate::ecss::tc::{
GenericPusTcSecondaryHeader, PusTc, PusTcCreator, PusTcReader, PusTcSecondaryHeader,
ACK_ALL,
GenericPusTcSecondaryHeader, PusTcCreator, PusTcReader, PusTcSecondaryHeader, ACK_ALL,
};
use crate::ecss::PusVersion::PusC;
use crate::ecss::{PusError, PusPacket, SerializablePusPacket};