mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(ble): fix ble wakeup causes error on ESP32-H2
(cherry picked from commit 5ff01bf027)
Co-authored-by: cjin <jinchen@espressif.com>
This commit is contained in:
committed by
BOT
co-authored by
cjin
parent
b9f9401a9b
commit
386b865308
@@ -764,7 +764,7 @@ IRAM_ATTR void controller_wakeup_cb(void *arg)
|
|||||||
#ifdef CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
#ifdef CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||||
static bool esp_bt_check_wakeup_by_bt(void)
|
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)
|
static esp_err_t sleep_modem_ble_mac_retention_init(void *arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user