Skip to content

Commit

Permalink
reset.cpp: fix deprecated ESP_EXT1_WAKEUP_ALL_LOW
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberman54 committed Feb 3, 2025
1 parent 0284843 commit 68f3071
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/reset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ void enter_deepsleep(uint32_t wakeup_sec, gpio_num_t wakeup_gpio) {
// set wakeup gpio, if we have
if (wakeup_gpio != GPIO_NUM_MAX) {
rtc_gpio_isolate(wakeup_gpio); // minimize deep sleep current
#if CONFIG_IDF_TARGET_ESP32
esp_sleep_enable_ext1_wakeup(1ULL << wakeup_gpio, ESP_EXT1_WAKEUP_ALL_LOW);
#else
esp_sleep_enable_ext1_wakeup(1ULL << wakeup_gpio, ESP_EXT1_WAKEUP_ANY_LOW);
#endif
//for arduinio-esp32 v6.10.0
//esp_sleep_enable_ext1_wakeup(1ULL << wakeup_gpio, ESP_EXT1_WAKEUP_ANY_LOW);
}
Expand Down

0 comments on commit 68f3071

Please sign in to comment.