mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 20:30:29 +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]
|
||||
}
|
||||
|
||||
/// Get reference to underlying 8-byte raw data buffer
|
||||
pub(crate) fn raw_data(&self) -> &[u8] {
|
||||
/// Get reference to underlying 8-byte raw data buffer, some bytes on the tail might be undefined.
|
||||
pub fn raw_data(&self) -> &[u8] {
|
||||
self.data.raw()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user