fix parameters and compilation

This commit is contained in:
Thomas Göttgens
2023-04-11 13:32:19 +02:00
parent 29c13b5c30
commit a9eb19fc62
8 changed files with 8 additions and 10 deletions

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)