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

This commit is contained in:
cjin
2025-10-22 16:59:42 +08:00
parent 7c8d916f79
commit 23a90fd2c0
+1 -1
View File
@@ -796,7 +796,7 @@ IRAM_ATTR 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_cause() == 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)