From 240868d1ce1631cdc1dfee9762bb9f8b9b6edddb Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 6 May 2025 16:19:36 +0200 Subject: [PATCH] remove some methods --- satrs/src/pus/verification.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/satrs/src/pus/verification.rs b/satrs/src/pus/verification.rs index aeb5c01..862a169 100644 --- a/satrs/src/pus/verification.rs +++ b/satrs/src/pus/verification.rs @@ -228,7 +228,7 @@ pub struct VerificationToken { } impl VerificationToken { - fn new(req_id: RequestId) -> VerificationToken { + pub fn new(req_id: RequestId) -> VerificationToken { VerificationToken { state: PhantomData, request_id: req_id, @@ -518,17 +518,11 @@ impl VerificationReportCreator { /// Initialize verification handling by passing a TC reference. This returns a token required /// to call the acceptance functions - pub fn add_tc( + pub fn read_request_id_from_tc( &mut self, pus_tc: &(impl CcsdsPacket + IsPusTelecommand), - ) -> VerificationToken { - self.add_tc_with_req_id(RequestId::new(pus_tc)) - } - - /// Same as [Self::add_tc] but pass a request ID instead of the direct telecommand. - /// This can be useful if the executing thread does not have full access to the telecommand. - pub fn add_tc_with_req_id(&mut self, req_id: RequestId) -> VerificationToken { - VerificationToken::::new(req_id) + ) -> RequestId { + RequestId::new(pus_tc) } fn success_verification_no_step<'time, 'src_data>(