Wake screen on first press (#4052)

This commit is contained in:
todd-herbert 2024-06-08 00:28:29 +12:00 committed by GitHub
parent 90d45f24fd
commit 338244de32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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