Compare commits

...

1 Commits

Author SHA1 Message Date
c666feb287
small action tweak 2024-05-13 11:48:05 +02:00

View File

@ -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());