mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
add tft task loop to main()
This commit is contained in:
parent
ce39c5133a
commit
d72cbd9566
13
src/main.cpp
13
src/main.cpp
@ -969,4 +969,15 @@ void loop()
|
||||
mainDelay.delay(delayMsec);
|
||||
}
|
||||
// if (didWake) LOG_DEBUG("wake!\n");
|
||||
}
|
||||
}
|
||||
|
||||
#if HAS_TFT
|
||||
void tft_task_handler(void)
|
||||
{
|
||||
while (true) {
|
||||
if (deviceScreen)
|
||||
deviceScreen->task_handler();
|
||||
delay(20);
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user