We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc8e6a commit 446d2dfCopy full SHA for 446d2df
tests/validation/sleep/sleep.ino
@@ -58,15 +58,15 @@ void setup_touchpad() {
58
}
59
60
void setup_rtc_io() {
61
-#if SOC_RTCIO_WAKE_SUPPORTED
+#if SOC_RTCIO_WAKE_SUPPORTED && SOC_PM_SUPPORT_EXT0_WAKEUP
62
esp_sleep_enable_ext0_wakeup(WAKEUP_GPIO, 1);
63
rtc_gpio_pullup_en(WAKEUP_GPIO);
64
rtc_gpio_pulldown_dis(WAKEUP_GPIO);
65
#endif
66
67
68
void setup_rtc_cntl() {
69
+#if SOC_RTCIO_WAKE_SUPPORTED && SOC_PM_SUPPORT_EXT1_WAKEUP
70
esp_sleep_enable_ext1_wakeup_io(BUTTON_PIN_BITMASK(WAKEUP_GPIO), ESP_EXT1_WAKEUP_ANY_HIGH);
71
72
0 commit comments