some more fixes and improvements

This commit is contained in:
2024-04-10 17:03:56 +02:00
parent 5cc561cbad
commit d0835f9393
5 changed files with 62 additions and 15 deletions

View File

@ -33,7 +33,8 @@ impl PusStack {
loop {
let mut nothing_to_do = true;
let mut is_srv_finished =
|tc_handling_status: HandlingStatus,
|_srv_id: u8,
tc_handling_status: HandlingStatus,
reply_handling_status: Option<HandlingStatus>| {
if tc_handling_status == HandlingStatus::HandledOne
|| (reply_handling_status.is_some()
@ -42,10 +43,15 @@ impl PusStack {
nothing_to_do = false;
}
};
is_srv_finished(self.test_srv.poll_and_handle_next_packet(&time_stamp), None);
is_srv_finished(
17,
self.test_srv.poll_and_handle_next_packet(&time_stamp),
None,
);
// is_srv_finished(self.schedule_srv.poll_and_handle_next_tc(&time_stamp), None);
// is_srv_finished(self.event_srv.poll_and_handle_next_tc(&time_stamp), None);
is_srv_finished(
8,
self.action_srv_wrapper.poll_and_handle_next_tc(&time_stamp),
Some(
self.action_srv_wrapper