From 338244de32686c7d1f882e92d8785e76e99fa054 Mon Sep 17 00:00:00 2001 From: todd-herbert Date: Sat, 8 Jun 2024 00:28:29 +1200 Subject: [PATCH] Wake screen on first press (#4052) --- src/ButtonThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ButtonThread.cpp b/src/ButtonThread.cpp index aaead62be..7e678d69d 100644 --- a/src/ButtonThread.cpp +++ b/src/ButtonThread.cpp @@ -232,10 +232,10 @@ void ButtonThread::attachButtonInterrupts() attachInterrupt( config.device.button_gpio ? config.device.button_gpio : BUTTON_PIN, []() { - BaseType_t higherWake = 0; - mainDelay.interruptFromISR(&higherWake); ButtonThread::userButton.tick(); runASAP = true; + BaseType_t higherWake = 0; + mainDelay.interruptFromISR(&higherWake); }, CHANGE); #endif