From 7bd836673e654e2760114a207ad151dc89c6963e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 13 Apr 2023 18:19:33 +0200 Subject: [PATCH] return shutdown time to 5 seconds. --- src/ButtonThread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ButtonThread.h b/src/ButtonThread.h index 13c424336..0e9d060dc 100644 --- a/src/ButtonThread.h +++ b/src/ButtonThread.h @@ -123,8 +123,8 @@ class ButtonThread : public concurrency::OSThread static void userButtonPressedLong() { // LOG_DEBUG("Long press!\n"); - // If user button is held down for 10 seconds, shutdown the device. - if ((millis() - longPressTime > 10000) && (longPressTime > 0)) { + // If user button is held down for 5 seconds, shutdown the device. + if ((millis() - longPressTime > 5000) && (longPressTime > 0)) { #if defined(ARCH_NRF52) || defined(ARCH_ESP32) // Do actual shutdown when button released, otherwise the button release // may wake the board immediatedly.