From 408803fe86d4400b133703f964b1d682ce5cb38d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 2 May 2024 13:41:27 +0200 Subject: [PATCH] small robustness fix --- satrs-example/src/pus/event.rs | 3 ++- satrs-example/src/pus/scheduler.rs | 3 ++- satrs-example/src/pus/test.rs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/satrs-example/src/pus/event.rs b/satrs-example/src/pus/event.rs index 42b812c..caecdd9 100644 --- a/satrs-example/src/pus/event.rs +++ b/satrs-example/src/pus/event.rs @@ -88,7 +88,8 @@ impl DirectPusSe Self::SERVICE_STR, e ); - return HandlingStatus::HandledOne; + // To avoid permanent loops on continuous errors. + return HandlingStatus::Empty; } match result.unwrap() { DirectPusPacketHandlerResult::Handled(handling_status) => return handling_status, diff --git a/satrs-example/src/pus/scheduler.rs b/satrs-example/src/pus/scheduler.rs index 38cee95..eaa03c4 100644 --- a/satrs-example/src/pus/scheduler.rs +++ b/satrs-example/src/pus/scheduler.rs @@ -108,7 +108,8 @@ impl DirectPusSe Self::SERVICE_STR, e ); - return HandlingStatus::HandledOne; + // To avoid permanent loops on continuous errors. + return HandlingStatus::Empty; } match result.unwrap() { DirectPusPacketHandlerResult::Handled(handling_status) => return handling_status, diff --git a/satrs-example/src/pus/test.rs b/satrs-example/src/pus/test.rs index 06cfe29..473dc3e 100644 --- a/satrs-example/src/pus/test.rs +++ b/satrs-example/src/pus/test.rs @@ -88,7 +88,8 @@ impl DirectPusSe Self::SERVICE_STR, e ); - return HandlingStatus::HandledOne; + // To avoid permanent loops on continuous errors. + return HandlingStatus::Empty; } match res.unwrap() { DirectPusPacketHandlerResult::Handled(handling_status) => {