mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 04:40:39 +00:00
Make raw_data public.
This commit is contained in:
parent
17d3adac4b
commit
eaec6c8165
@ -212,8 +212,8 @@ impl Frame {
|
|||||||
&self.data.raw()[..self.can_header.len as usize]
|
&self.data.raw()[..self.can_header.len as usize]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get reference to underlying 8-byte raw data buffer
|
/// Get reference to underlying 8-byte raw data buffer, some bytes on the tail might be undefined.
|
||||||
pub(crate) fn raw_data(&self) -> &[u8] {
|
pub fn raw_data(&self) -> &[u8] {
|
||||||
self.data.raw()
|
self.data.raw()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user