remove superfluous check

This commit is contained in:
mverch67 2025-04-30 12:15:43 +02:00
parent 0c615f3dbd
commit a76e5643dd

View File

@ -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();
}
} }
} }