From 8561f26e3c71b1f553bf18f1bdbea65510106d19 Mon Sep 17 00:00:00 2001 From: Zhou Xiao Date: Thu, 23 Oct 2025 15:12:31 +0800 Subject: [PATCH] fix(ble): fix ble wakeup causes error on ESP32-H2 (cherry picked from commit 5ff01bf02796e3fe12b82d827e6fbb3d5e35efbe) Co-authored-by: cjin --- components/bt/controller/esp32h2/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/controller/esp32h2/bt.c b/components/bt/controller/esp32h2/bt.c index 82c32f15ae4..1911fd2d2a4 100644 --- a/components/bt/controller/esp32h2/bt.c +++ b/components/bt/controller/esp32h2/bt.c @@ -764,7 +764,7 @@ IRAM_ATTR void controller_wakeup_cb(void *arg) #ifdef CONFIG_FREERTOS_USE_TICKLESS_IDLE static bool esp_bt_check_wakeup_by_bt(void) { - return (esp_sleep_get_wakeup_causes() & ESP_SLEEP_WAKEUP_BT); + return (esp_sleep_get_wakeup_causes() & BIT(ESP_SLEEP_WAKEUP_BT)); } static esp_err_t sleep_modem_ble_mac_retention_init(void *arg)