mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-06 15:03:22 +00:00
remove superfluous check
This commit is contained in:
parent
0c615f3dbd
commit
a76e5643dd
@ -27,12 +27,10 @@ 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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user