mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(sleep): disable usb wakeup through generic API
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
Jiang Guang Ming
co-authored by
Cursor
parent
ec27869a89
commit
0f4bf3e097
@@ -1830,6 +1830,10 @@ esp_err_t esp_sleep_disable_wakeup_source(esp_sleep_source_t source)
|
||||
#if SOC_VBAT_SUPPORTED
|
||||
} else if (CHECK_SOURCE(source, ESP_SLEEP_WAKEUP_VBAT_UNDER_VOLT, RTC_VBAT_UNDER_VOLT_TRIG_EN)) {
|
||||
s_config.wakeup_triggers &= ~RTC_VBAT_UNDER_VOLT_TRIG_EN;
|
||||
#endif
|
||||
#if SOC_PM_SUPPORT_USB_WAKEUP
|
||||
} else if (CHECK_SOURCE(source, ESP_SLEEP_WAKEUP_USB, RTC_USB_TRIG_EN)) {
|
||||
s_config.wakeup_triggers &= ~RTC_USB_TRIG_EN;
|
||||
#endif
|
||||
} else {
|
||||
ESP_EARLY_LOGE(TAG, "Incorrect wakeup source (%d) to disable.", (int) source);
|
||||
|
||||
Reference in New Issue
Block a user