Add 100 msecond delay in tft_task_handler when deviceScreen is null, to fix 100% usage bug

This commit is contained in:
Jonathan Bennett 2025-04-29 19:25:29 -05:00
parent 216fbf2343
commit 7eb6d0a985

View File

@ -31,6 +31,8 @@ void tft_task_handler(void *param = nullptr)
deviceScreen->task_handler(); deviceScreen->task_handler();
spiLock->unlock(); spiLock->unlock();
deviceScreen->sleep(); deviceScreen->sleep();
} else {
delay(100);
} }
} }
} }