refactored ButtonThread, fix IRQ issues (#3214)

* refactored  ButtonThread, fix IRQ issues

* fix copy&paste syntax error
This commit is contained in:
Manuel
2024-02-12 16:44:21 -06:00
committed by GitHub
co-authored by GitHub
parent c43cbb5795
commit 30507f5125
3 changed files with 250 additions and 224 deletions
-5
View File
@@ -191,15 +191,10 @@ static int32_t ledBlinker()
uint32_t timeLastPowered = 0;
#if HAS_BUTTON || defined(ARCH_PORTDUINO)
bool ButtonThread::shutdown_on_long_stop = false;
#endif
static Periodic *ledPeriodic;
static OSThread *powerFSMthread;
#if HAS_BUTTON || defined(ARCH_PORTDUINO)
static OSThread *buttonThread;
uint32_t ButtonThread::longPressTime = 0;
#endif
static OSThread *accelerometerThread;
static OSThread *ambientLightingThread;