From 391f0b5d09dba018dd984a706dc8071f87e06dec Mon Sep 17 00:00:00 2001 From: xoviat Date: Sat, 17 Jun 2023 08:37:00 -0500 Subject: [PATCH] revert reset changes --- embassy-stm32-wpan/src/ble.rs | 5 ----- embassy-stm32-wpan/src/sys.rs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/embassy-stm32-wpan/src/ble.rs b/embassy-stm32-wpan/src/ble.rs index d8af861a..3a6cc6f0 100644 --- a/embassy-stm32-wpan/src/ble.rs +++ b/embassy-stm32-wpan/src/ble.rs @@ -16,11 +16,6 @@ pub struct Ble; impl Ble { pub(super) fn enable() { unsafe { - // Ensure reproducible behavior - BLE_CMD_BUFFER - .as_mut_ptr() - .write_volatile(MaybeUninit::zeroed().assume_init()); - LinkedListNode::init_head(EVT_QUEUE.as_mut_ptr()); TL_BLE_TABLE.as_mut_ptr().write_volatile(BleTable { diff --git a/embassy-stm32-wpan/src/sys.rs b/embassy-stm32-wpan/src/sys.rs index fb247f27..36b4a144 100644 --- a/embassy-stm32-wpan/src/sys.rs +++ b/embassy-stm32-wpan/src/sys.rs @@ -16,11 +16,6 @@ pub struct Sys; impl Sys { pub fn enable() { unsafe { - // Ensure reproducible behavior - SYS_CMD_BUF - .as_mut_ptr() - .write_volatile(MaybeUninit::zeroed().assume_init()); - LinkedListNode::init_head(SYSTEM_EVT_QUEUE.as_mut_ptr()); TL_SYS_TABLE.as_mut_ptr().write_volatile(SysTable {