1 Commits

Author SHA1 Message Date
94489da003 return usize instead of u8 for byte width
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
2022-09-06 10:14:23 +02:00

View File

@ -138,8 +138,8 @@ pub(crate) use sp_header_impls;
pub trait EcssEnumeration {
fn pfc(&self) -> u8;
fn byte_width(&self) -> u8 {
self.pfc() / 8
fn byte_width(&self) -> usize {
(self.pfc() / 8) as usize
}
fn to_bytes(&self, buf: &mut [u8]) -> Result<(), ByteConversionError>;
}