Compare commits
1 Commits
main
...
small-acti
Author | SHA1 | Date | |
---|---|---|---|
c666feb287 |
@ -32,7 +32,9 @@ use super::{
|
||||
TargetedPusService,
|
||||
};
|
||||
|
||||
pub const DATA_REPLY: u8 = 130;
|
||||
pub enum Subservice {
|
||||
DataReply = 130,
|
||||
}
|
||||
|
||||
pub struct ActionReplyHandler {
|
||||
fail_data_buf: [u8; 128],
|
||||
@ -275,7 +277,8 @@ pub fn send_data_reply<TmSender: EcssTmSender>(
|
||||
tm_sender: &TmSender,
|
||||
) -> Result<(), EcssTmtcError> {
|
||||
let sp_header = SpHeader::new_from_apid(apid_target.apid);
|
||||
let sec_header = PusTmSecondaryHeader::new(8, DATA_REPLY, 0, 0, stamp_helper.stamp());
|
||||
let sec_header =
|
||||
PusTmSecondaryHeader::new(8, Subservice::DataReply as u8, 0, 0, stamp_helper.stamp());
|
||||
let mut data = Vec::new();
|
||||
data.extend(apid_target.apid.to_be_bytes());
|
||||
data.extend(apid_target.unique_id.to_be_bytes());
|
||||
|
Loading…
Reference in New Issue
Block a user