mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-07 15:12:45 +00:00
remove superfluous check
This commit is contained in:
parent
0c615f3dbd
commit
a76e5643dd
@ -27,14 +27,12 @@ CallbackObserver<DeviceScreen, esp_sleep_wakeup_cause_t> endSleepObserver =
|
|||||||
void tft_task_handler(void *param = nullptr)
|
void tft_task_handler(void *param = nullptr)
|
||||||
{
|
{
|
||||||
while (true) {
|
while (true) {
|
||||||
if (deviceScreen) {
|
|
||||||
spiLock->lock();
|
spiLock->lock();
|
||||||
deviceScreen->task_handler();
|
deviceScreen->task_handler();
|
||||||
spiLock->unlock();
|
spiLock->unlock();
|
||||||
deviceScreen->sleep();
|
deviceScreen->sleep();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void tftSetup(void)
|
void tftSetup(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user