diff --git a/embassy-stm32/src/eth/mod.rs b/embassy-stm32/src/eth/mod.rs index b632861b..e1d7a09b 100644 --- a/embassy-stm32/src/eth/mod.rs +++ b/embassy-stm32/src/eth/mod.rs @@ -44,7 +44,7 @@ impl PacketQueue { // Allow to initialize a Self without requiring it to go on the stack pub fn init(this: &mut MaybeUninit) { unsafe { - this.as_mut_ptr().write_bytes(0u8, core::mem::size_of::()); + this.as_mut_ptr().write_bytes(0u8, 1); } } }