bump spacepackets dependency

This commit is contained in:
2022-12-08 15:26:49 +01:00
parent 8a5fae1a95
commit 46039b8d1d
5 changed files with 15 additions and 11 deletions

View File

@ -148,7 +148,8 @@ impl<E: 'static> ReceivesTc for CcsdsDistributor<E> {
}),
));
}
let (sp_header, _) = SpHeader::from_be_bytes(tc_raw).map_err(|e| CcsdsError::PacketError(e))?;
let (sp_header, _) =
SpHeader::from_be_bytes(tc_raw).map_err(|e| CcsdsError::PacketError(e))?;
self.dispatch_ccsds(&sp_header, tc_raw)
}
}

View File

@ -1,4 +1,5 @@
use spacepackets::time::{CdsShortTimeProvider, TimeWriter};
use spacepackets::time::cds::TimeProvider;
use spacepackets::time::TimeWriter;
use spacepackets::tm::{PusTm, PusTmSecondaryHeader};
use spacepackets::SpHeader;
@ -22,7 +23,7 @@ impl PusTmWithCdsShortHelper {
subservice: u8,
source_data: Option<&'a [u8]>,
) -> PusTm {
let time_stamp = CdsShortTimeProvider::from_now().unwrap();
let time_stamp = TimeProvider::from_now_with_u16_days().unwrap();
time_stamp.write_to_bytes(&mut self.cds_short_buf).unwrap();
self.create_pus_tm_common(service, subservice, source_data)
}
@ -32,7 +33,7 @@ impl PusTmWithCdsShortHelper {
service: u8,
subservice: u8,
source_data: Option<&'a [u8]>,
stamper: &CdsShortTimeProvider,
stamper: &TimeProvider,
) -> PusTm {
stamper.write_to_bytes(&mut self.cds_short_buf).unwrap();
self.create_pus_tm_common(service, subservice, source_data)