added debug output in action reply handler and tm handling in tmtcpy, ready to merge into main

This commit is contained in:
lkoester
2024-04-24 16:43:59 +02:00
parent 09bef401c0
commit 83322ae415
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
use log::{error, warn};
use log::{debug, error, warn};
use ops_sat_rs::config::tmtc_err;
use satrs::action::{ActionRequest, ActionRequestVariant};
use satrs::params::WritableToBeBytes;
@ -278,6 +278,7 @@ pub fn send_data_reply<TmSender: EcssTmSender>(apid_target: UniqueApidTargetId,
data.extend(apid_target.apid.to_be_bytes());
data.extend(apid_target.unique_id.to_be_bytes());
data.extend(reply_data);
debug!("{}", String::from_utf8(data.clone()[6..].to_vec()).expect("Error decoding data reply."));
let data_reply_tm = PusTmCreator::new(
sp_header,
sec_header,