From a446224e43b0c2c621f66ef8a3a06c44dfdf9317 Mon Sep 17 00:00:00 2001 From: Zhou Xiao Date: Thu, 23 Oct 2025 15:12:37 +0800 Subject: [PATCH] fix(ble): fix ble wakeup causes error on ESP32-C2 (cherry picked from commit 5407e36e4a888aa2780686ee85e3e8d548605b88) Co-authored-by: cjin --- components/bt/controller/esp32c2/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/controller/esp32c2/bt.c b/components/bt/controller/esp32c2/bt.c index bdfdc48ac12..c9b227a5f7a 100644 --- a/components/bt/controller/esp32c2/bt.c +++ b/components/bt/controller/esp32c2/bt.c @@ -749,7 +749,7 @@ void controller_wakeup_cb(void *arg) #if 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)); } #endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE