From 437ed697900fbec49349a2107d65b86833491886 Mon Sep 17 00:00:00 2001 From: Token Date: Tue, 10 Sep 2024 15:54:56 +0200 Subject: [PATCH] Make out-of-power state a bit more visible --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7469c43..d7523e0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -99,7 +99,7 @@ void _hardBrownOutHandler() { // Low brightness blink every few seconds EFLed.enablePower(); EFLed.setDragonNose(CRGB::Red); - esp_sleep_enable_timer_wakeup(100 * 1000); // 100 ms + esp_sleep_enable_timer_wakeup(200 * 1000); // 200 ms EFLed.disablePower(); // sleep most of the time. esp_sleep_enable_timer_wakeup(2 * 1000 * 1000); // 2s @@ -134,10 +134,10 @@ void _softBrownOutHandler() { for (uint8_t n = 0; n < 30; n++) { EFLed.enablePower(); EFLed.setDragonNose(CRGB::Red); - esp_sleep_enable_timer_wakeup(200 * 1000); + esp_sleep_enable_timer_wakeup(300 * 1000); esp_light_sleep_start(); EFLed.disablePower(); - esp_sleep_enable_timer_wakeup(800 * 1000); + esp_sleep_enable_timer_wakeup(700 * 1000); esp_light_sleep_start(); }