From b8ca4858818437fee43c02d4f2be39b1b4b61dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= <bugadani@gmail.com> Date: Thu, 16 Jan 2025 10:37:22 +0100 Subject: [PATCH] Fix low_power_wait --- esp-hal-embassy/CHANGELOG.md | 2 ++ esp-hal-embassy/src/executor/thread.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/esp-hal-embassy/CHANGELOG.md b/esp-hal-embassy/CHANGELOG.md index a8c1d22fbd3..179837e0188 100644 --- a/esp-hal-embassy/CHANGELOG.md +++ b/esp-hal-embassy/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed an issue where the `ESP_HAL_EMBASSY_CONFIG_LOW_POWER_WAIT` option was not possible to disable (#2975) + ### Removed ## 0.6.0 - 2025-01-15 diff --git a/esp-hal-embassy/src/executor/thread.rs b/esp-hal-embassy/src/executor/thread.rs index b611d0b701c..9b920d1e0d6 100644 --- a/esp-hal-embassy/src/executor/thread.rs +++ b/esp-hal-embassy/src/executor/thread.rs @@ -15,6 +15,7 @@ pub(crate) const THREAD_MODE_CONTEXT: usize = 16; /// global atomic used to keep track of whether there is work to do since sev() /// is not available on either Xtensa or RISC-V +#[cfg(low_power_wait)] static SIGNAL_WORK_THREAD_MODE: [AtomicBool; Cpu::COUNT] = [const { AtomicBool::new(false) }; Cpu::COUNT];