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} - diff --git a/src/ButtonThread.h b/src/ButtonThread.h index b295f896a..0e9d060dc 100644 --- a/src/ButtonThread.h +++ b/src/ButtonThread.h @@ -123,9 +123,8 @@ 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 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.