From 5cc561cbadf712489f28da07fb7a1b45c27197d8 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 10 Apr 2024 15:50:02 +0200 Subject: [PATCH] important bugfix for PUS stack --- src/pus/stack.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pus/stack.rs b/src/pus/stack.rs index eb1fb3f..58a5cd6 100644 --- a/src/pus/stack.rs +++ b/src/pus/stack.rs @@ -33,10 +33,11 @@ impl PusStack { loop { let mut nothing_to_do = true; let mut is_srv_finished = - |tc_handling_done: HandlingStatus, reply_handling_done: Option| { - if tc_handling_done == HandlingStatus::Empty - || (reply_handling_done.is_some() - && reply_handling_done.unwrap() == HandlingStatus::Empty) + |tc_handling_status: HandlingStatus, + reply_handling_status: Option| { + if tc_handling_status == HandlingStatus::HandledOne + || (reply_handling_status.is_some() + && reply_handling_status.unwrap() == HandlingStatus::HandledOne) { nothing_to_do = false; } @@ -61,7 +62,7 @@ impl PusStack { // ); if nothing_to_do { // Timeout checking is only done once. - // self.action_srv_wrapper.check_for_request_timeouts(); + self.action_srv_wrapper.check_for_request_timeouts(); // self.hk_srv_wrapper.check_for_request_timeouts(); // self.mode_srv.check_for_request_timeouts(); break;