Defmt for RawHardwareAddress
This commit is contained in:
parent
6e63433ab3
commit
061fcf880f
|
@ -321,6 +321,7 @@ pub const MAX_HARDWARE_ADDRESS_LEN: usize = 8;
|
||||||
/// Used to make NDISC parsing agnostic of the hardware medium in use.
|
/// Used to make NDISC parsing agnostic of the hardware medium in use.
|
||||||
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
|
#[cfg(any(feature = "medium-ethernet", feature = "medium-ieee802154"))]
|
||||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub struct RawHardwareAddress {
|
pub struct RawHardwareAddress {
|
||||||
len: u8,
|
len: u8,
|
||||||
data: [u8; MAX_HARDWARE_ADDRESS_LEN],
|
data: [u8; MAX_HARDWARE_ADDRESS_LEN],
|
||||||
|
|
Loading…
Reference in New Issue