diff options
| -rw-r--r-- | embassy-stm32-wpan/src/ble.rs | 5 | ||||
| -rw-r--r-- | embassy-stm32-wpan/src/sys.rs | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/embassy-stm32-wpan/src/ble.rs b/embassy-stm32-wpan/src/ble.rs index d8af861ae..3a6cc6f07 100644 --- a/embassy-stm32-wpan/src/ble.rs +++ b/embassy-stm32-wpan/src/ble.rs | |||
| @@ -16,11 +16,6 @@ pub struct Ble; | |||
| 16 | impl Ble { | 16 | impl Ble { |
| 17 | pub(super) fn enable() { | 17 | pub(super) fn enable() { |
| 18 | unsafe { | 18 | unsafe { |
| 19 | // Ensure reproducible behavior | ||
| 20 | BLE_CMD_BUFFER | ||
| 21 | .as_mut_ptr() | ||
| 22 | .write_volatile(MaybeUninit::zeroed().assume_init()); | ||
| 23 | |||
| 24 | LinkedListNode::init_head(EVT_QUEUE.as_mut_ptr()); | 19 | LinkedListNode::init_head(EVT_QUEUE.as_mut_ptr()); |
| 25 | 20 | ||
| 26 | TL_BLE_TABLE.as_mut_ptr().write_volatile(BleTable { | 21 | 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 fb247f276..36b4a144d 100644 --- a/embassy-stm32-wpan/src/sys.rs +++ b/embassy-stm32-wpan/src/sys.rs | |||
| @@ -16,11 +16,6 @@ pub struct Sys; | |||
| 16 | impl Sys { | 16 | impl Sys { |
| 17 | pub fn enable() { | 17 | pub fn enable() { |
| 18 | unsafe { | 18 | unsafe { |
| 19 | // Ensure reproducible behavior | ||
| 20 | SYS_CMD_BUF | ||
| 21 | .as_mut_ptr() | ||
| 22 | .write_volatile(MaybeUninit::zeroed().assume_init()); | ||
| 23 | |||
| 24 | LinkedListNode::init_head(SYSTEM_EVT_QUEUE.as_mut_ptr()); | 19 | LinkedListNode::init_head(SYSTEM_EVT_QUEUE.as_mut_ptr()); |
| 25 | 20 | ||
| 26 | TL_SYS_TABLE.as_mut_ptr().write_volatile(SysTable { | 21 | TL_SYS_TABLE.as_mut_ptr().write_volatile(SysTable { |
