From bf5a376926ecc0091abb6f963b546c4496c89272 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 30 Dec 2020 22:07:50 +0100 Subject: [PATCH] fix issue #697 --- include/reset.h | 3 ++- src/reset.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/reset.h b/include/reset.h index af9d6c50..ddf3dfcb 100644 --- a/include/reset.h +++ b/include/reset.h @@ -11,7 +11,8 @@ void do_reset(bool warmstart); void do_after_reset(void); -void enter_deepsleep(const uint64_t wakeup_sec, const gpio_num_t wakeup_gpio); +void enter_deepsleep(const uint64_t wakeup_sec = 60, + const gpio_num_t wakeup_gpio = GPIO_NUM_MAX); unsigned long long uptime(void); #endif // _RESET_H \ No newline at end of file diff --git a/src/reset.cpp b/src/reset.cpp index 8332589d..3bd2a619 100644 --- a/src/reset.cpp +++ b/src/reset.cpp @@ -81,8 +81,7 @@ void do_after_reset(void) { runmode[RTC_runmode]); } -void enter_deepsleep(const uint64_t wakeup_sec = 60, - gpio_num_t wakeup_gpio = GPIO_NUM_MAX) { +void enter_deepsleep(const uint64_t wakeup_sec, gpio_num_t wakeup_gpio) { ESP_LOGI(TAG, "Preparing to sleep...");