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)
|
void tft_task_handler(void *param = nullptr)
|
||||||
{
|
{
|
||||||
while (true) {
|
while (true) {
|
||||||
if (deviceScreen)
|
if (deviceScreen) {
|
||||||
|
spiLock->lock();
|
||||||
deviceScreen->task_handler();
|
deviceScreen->task_handler();
|
||||||
|
spiLock->unlock();
|
||||||
|
}
|
||||||
#ifdef HAS_FREE_RTOS
|
#ifdef HAS_FREE_RTOS
|
||||||
vTaskDelay((TickType_t)20);
|
vTaskDelay((TickType_t)10);
|
||||||
#else
|
#else
|
||||||
delay(5);
|
delay(5);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user