aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/eth/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/eth/mod.rs b/embassy-stm32/src/eth/mod.rs
index b632861bf..e1d7a09b4 100644
--- a/embassy-stm32/src/eth/mod.rs
+++ b/embassy-stm32/src/eth/mod.rs
@@ -44,7 +44,7 @@ impl<const TX: usize, const RX: usize> PacketQueue<TX, RX> {
44 // Allow to initialize a Self without requiring it to go on the stack 44 // Allow to initialize a Self without requiring it to go on the stack
45 pub fn init(this: &mut MaybeUninit<Self>) { 45 pub fn init(this: &mut MaybeUninit<Self>) {
46 unsafe { 46 unsafe {
47 this.as_mut_ptr().write_bytes(0u8, core::mem::size_of::<Self>()); 47 this.as_mut_ptr().write_bytes(0u8, 1);
48 } 48 }
49 } 49 }
50} 50}