bugfix for targeted services #154

Merged
muellerr merged 1 commits from bugfix-targeted-services into main 2024-04-13 15:10:15 +02:00
3 changed files with 9 additions and 3 deletions

View File

@ -283,7 +283,9 @@ impl<TmSender: EcssTmSenderCore, TcInMemConverter: EcssTcInMemConverter> Targete
PusPacketHandlerResult::Empty => return HandlingStatus::Empty, PusPacketHandlerResult::Empty => return HandlingStatus::Empty,
}, },
Err(error) => { Err(error) => {
error!("PUS packet handling error: {error:?}") error!("PUS packet handling error: {error:?}");
// To avoid permanent loops on error cases.
return HandlingStatus::Empty;
} }
} }
HandlingStatus::HandledOne HandlingStatus::HandledOne

View File

@ -316,7 +316,9 @@ impl<TmSender: EcssTmSenderCore, TcInMemConverter: EcssTcInMemConverter>
PusPacketHandlerResult::Empty => return HandlingStatus::Empty, PusPacketHandlerResult::Empty => return HandlingStatus::Empty,
}, },
Err(error) => { Err(error) => {
error!("PUS packet handling error: {error:?}") error!("PUS packet handling error: {error:?}");
// To avoid permanent loops on error cases.
return HandlingStatus::Empty;
} }
} }
HandlingStatus::HandledOne HandlingStatus::HandledOne

View File

@ -288,7 +288,9 @@ impl<TmSender: EcssTmSenderCore, TcInMemConverter: EcssTcInMemConverter> Targete
PusPacketHandlerResult::Empty => return HandlingStatus::Empty, PusPacketHandlerResult::Empty => return HandlingStatus::Empty,
}, },
Err(error) => { Err(error) => {
error!("PUS mode service: packet handling error: {error:?}") error!("PUS mode service: packet handling error: {error:?}");
// To avoid permanent loops on error cases.
return HandlingStatus::Empty;
} }
} }
HandlingStatus::HandledOne HandlingStatus::HandledOne