API update
This commit is contained in:
parent
df670f13df
commit
8a5fae1a95
@ -148,7 +148,7 @@ impl<E: 'static> ReceivesTc for CcsdsDistributor<E> {
|
|||||||
}),
|
}),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
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)
|
self.dispatch_ccsds(&sp_header, tc_raw)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ impl<E: 'static> ReceivesTc for PusDistributor<E> {
|
|||||||
type Error = PusDistribError<E>;
|
type Error = PusDistribError<E>;
|
||||||
fn pass_tc(&mut self, tm_raw: &[u8]) -> Result<(), Self::Error> {
|
fn pass_tc(&mut self, tm_raw: &[u8]) -> Result<(), Self::Error> {
|
||||||
// Convert to ccsds and call pass_ccsds
|
// 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)))?;
|
.map_err(|e| PusDistribError::PusError(PusError::ByteConversionError(e)))?;
|
||||||
self.pass_ccsds(&sp_header, tm_raw)
|
self.pass_ccsds(&sp_header, tm_raw)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user