fix parameters and compilation

This commit is contained in:
Thomas Göttgens
2023-04-11 14:37:08 +02:00
parent 29c13b5c30
commit a9eb19fc62
8 files changed
+8 -10

No files matched your search

+1 -3
View File
@@ -123,9 +123,7 @@ class ButtonThread : public concurrency::OSThread
static void userButtonPressedLong()
{
// LOG_DEBUG("Long press!\n");
if (screen_found == true) {
screen->adjustBrightness();
}
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)