From 02817e8bf378d30448f206eaf9ce7fcfe4e710f0 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 27 Nov 2022 14:30:29 +0100 Subject: [PATCH] use function --- satrs-example/src/pus.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/satrs-example/src/pus.rs b/satrs-example/src/pus.rs index bcc58ad..18a21b9 100644 --- a/satrs-example/src/pus.rs +++ b/satrs-example/src/pus.rs @@ -54,12 +54,7 @@ impl PusServiceProvider for PusReceiver { pus_tc: &PusTc, ) -> Result<(), Self::Error> { let init_token = self.verif_reporter.add_tc(pus_tc); - self.stamper - .update_from_now() - .expect("Updating time for time stamp failed"); - self.stamper - .write_to_bytes(&mut self.time_stamp) - .expect("Writing time stamp failed"); + self.update_time_stamp(); let accepted_token = self .verif_reporter .acceptance_success(init_token, &self.time_stamp)