Skip to content

Commit e5b17db

Browse files
committed
fix
1 parent dbeb95e commit e5b17db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/validation/sleep/sleep.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ void setup_touchpad() {
5858
}
5959

6060
void setup_rtc_io() {
61-
#if SOC_RTCIO_WAKE_SUPPORTED
61+
#if SOC_RTCIO_WAKE_SUPPORTED && SOC_PM_SUPPORT_EXT0_WAKEUP
6262
esp_sleep_enable_ext0_wakeup(WAKEUP_GPIO, 1);
6363
rtc_gpio_pullup_en(WAKEUP_GPIO);
6464
rtc_gpio_pulldown_dis(WAKEUP_GPIO);
6565
#endif
6666
}
6767

6868
void setup_rtc_cntl() {
69-
#if SOC_RTCIO_WAKE_SUPPORTED
69+
#if SOC_RTCIO_WAKE_SUPPORTED && SOC_PM_SUPPORT_EXT1_WAKEUP
7070
esp_sleep_enable_ext1_wakeup_io(BUTTON_PIN_BITMASK(WAKEUP_GPIO), ESP_EXT1_WAKEUP_ANY_HIGH);
7171
rtc_gpio_pulldown_dis(WAKEUP_GPIO);
7272
rtc_gpio_pullup_en(WAKEUP_GPIO);

0 commit comments

Comments
 (0)