This commit is contained in:
cyberman54 2020-12-30 22:07:50 +01:00
parent e882ad625e
commit bf5a376926
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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...");