From 8a5fae1a9544a83f203e221165a0602be983c139 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 5 Dec 2022 08:53:13 +0100 Subject: [PATCH] API update --- satrs-core/src/tmtc/ccsds_distrib.rs | 2 +- satrs-core/src/tmtc/pus_distrib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/satrs-core/src/tmtc/ccsds_distrib.rs b/satrs-core/src/tmtc/ccsds_distrib.rs index 1da91d7..fa6e143 100644 --- a/satrs-core/src/tmtc/ccsds_distrib.rs +++ b/satrs-core/src/tmtc/ccsds_distrib.rs @@ -148,7 +148,7 @@ impl ReceivesTc for CcsdsDistributor { }), )); } - let sp_header = SpHeader::from_be_bytes(tc_raw).map_err(|e| CcsdsError::PacketError(e))?; + let (sp_header, _) = SpHeader::from_be_bytes(tc_raw).map_err(|e| CcsdsError::PacketError(e))?; self.dispatch_ccsds(&sp_header, tc_raw) } } diff --git a/satrs-core/src/tmtc/pus_distrib.rs b/satrs-core/src/tmtc/pus_distrib.rs index 3f0db05..206be08 100644 --- a/satrs-core/src/tmtc/pus_distrib.rs +++ b/satrs-core/src/tmtc/pus_distrib.rs @@ -98,7 +98,7 @@ impl ReceivesTc for PusDistributor { type Error = PusDistribError; fn pass_tc(&mut self, tm_raw: &[u8]) -> Result<(), Self::Error> { // Convert to ccsds and call pass_ccsds - let sp_header = SpHeader::from_be_bytes(tm_raw) + let (sp_header, _) = SpHeader::from_be_bytes(tm_raw) .map_err(|e| PusDistribError::PusError(PusError::ByteConversionError(e)))?; self.pass_ccsds(&sp_header, tm_raw) }