From a9ce4338ff208dc0ef9c7c74b4e9e3fd5a29ac03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 12 Apr 2023 19:04:19 +0200 Subject: [PATCH 1/3] update library version --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index d8c55fb78..c339cf992 100644 --- a/platformio.ini +++ b/platformio.ini @@ -85,7 +85,7 @@ lib_deps = ${env.lib_deps} mprograms/QMC5883LCompass@^1.1.1 end2endzone/NonBlockingRTTTL@^1.3.0 - https://github.com/meshtastic/SparkFun_ATECCX08a_Arduino_Library.git#52b5282639d08a8cbd4b748363089eed6102dc76 + https://github.com/meshtastic/SparkFun_ATECCX08a_Arduino_Library.git#5cf62b36c6f30bc72a07bdb2c11fc9a22d1e31da build_flags = ${env.build_flags} -Os -DRADIOLIB_SPI_PARANOID=0 build_src_filter = ${env.build_src_filter} - From e0da661632b627d4e2d28d3dbf8699cfce8e17ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 13 Apr 2023 15:13:36 +0200 Subject: [PATCH 2/3] remove screen brightness again --- src/ButtonThread.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ButtonThread.h b/src/ButtonThread.h index b295f896a..13c424336 100644 --- a/src/ButtonThread.h +++ b/src/ButtonThread.h @@ -123,7 +123,6 @@ class ButtonThread : public concurrency::OSThread static void userButtonPressedLong() { // LOG_DEBUG("Long press!\n"); - screen->adjustBrightness(); // If user button is held down for 10 seconds, shutdown the device. if ((millis() - longPressTime > 10000) && (longPressTime > 0)) { #if defined(ARCH_NRF52) || defined(ARCH_ESP32) 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 3/3] 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.