fix(ble): fix ble wakeup causes error on ESP32-C2

(cherry picked from commit 5407e36e4a)

Co-authored-by: cjin <jinchen@espressif.com>
This commit is contained in:
Zhou Xiao
2025-10-23 15:12:30 +08:00
co-authored by cjin
parent 8549409fd0
commit cd704b8fd1
+1 -1
View File
@@ -747,7 +747,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