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