diff options
author | uvok | 2025-07-21 08:18:07 +0200 |
---|---|---|
committer | uvok | 2025-07-21 08:18:07 +0200 |
commit | 6d4154319be1f56d98a4652db896568fe07c02af (patch) | |
tree | 68777c97ee4f3d3bc42c685c4e20a0a3adc7d73b /src | |
parent | 5fd6713fd5cf8c1c9aa29c865a4cf0144d82a83f (diff) |
Re-enable light sleeo
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 6 |
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(); } |