summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e261e16..52b3af8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -82,9 +82,11 @@ void loop()
}
}
- if (false && millis() - lastActivity > SLEEP_TIME && !de::uvok::badge::ble_is_advertising())
+ if (millis() - lastActivity > SLEEP_TIME && !de::uvok::badge::ble_is_advertising())
{
- // RTC watchdog???
+ // RTC watchdog might reset ??? - not sure when/how this happens...
+ // (Happened with CPU@240MHz, not at 80 MHz yet?)
+ // RTCWDT_RTC_RST
esp_sleep_enable_timer_wakeup(10 * 1000);
esp_light_sleep_start();
}