mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
try-fix spi lock
This commit is contained in:
parent
9bfbd03134
commit
2d45b333e5
@ -1186,10 +1186,13 @@ void loop()
|
||||
void tft_task_handler(void *param = nullptr)
|
||||
{
|
||||
while (true) {
|
||||
if (deviceScreen)
|
||||
if (deviceScreen) {
|
||||
spiLock->lock();
|
||||
deviceScreen->task_handler();
|
||||
spiLock->unlock();
|
||||
}
|
||||
#ifdef HAS_FREE_RTOS
|
||||
vTaskDelay((TickType_t)20);
|
||||
vTaskDelay((TickType_t)10);
|
||||
#else
|
||||
delay(5);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user