return usize instead of u8 for byte width
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
This commit is contained in:
parent
c72c5ad4aa
commit
94489da003
@ -138,8 +138,8 @@ pub(crate) use sp_header_impls;
|
|||||||
|
|
||||||
pub trait EcssEnumeration {
|
pub trait EcssEnumeration {
|
||||||
fn pfc(&self) -> u8;
|
fn pfc(&self) -> u8;
|
||||||
fn byte_width(&self) -> u8 {
|
fn byte_width(&self) -> usize {
|
||||||
self.pfc() / 8
|
(self.pfc() / 8) as usize
|
||||||
}
|
}
|
||||||
fn to_bytes(&self, buf: &mut [u8]) -> Result<(), ByteConversionError>;
|
fn to_bytes(&self, buf: &mut [u8]) -> Result<(), ByteConversionError>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user