mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 19:12:09 +00:00
reduce load of TFT task
This commit is contained in:
parent
fc80c3bcb9
commit
2c2dfcf7df
@ -1088,7 +1088,7 @@ void setup()
|
||||
|
||||
#if HAS_TFT
|
||||
#ifdef HAS_FREE_RTOS
|
||||
xTaskCreatePinnedToCore(tft_task_handler, "tft", 8192, NULL, 9, NULL, 0);
|
||||
xTaskCreatePinnedToCore(tft_task_handler, "tft", 8192, NULL, 5, NULL, 0);
|
||||
#endif
|
||||
#else
|
||||
setCPUFast(false); // 80MHz is fine for our slow peripherals
|
||||
@ -1176,7 +1176,7 @@ void tft_task_handler(void *param = nullptr)
|
||||
if (deviceScreen)
|
||||
deviceScreen->task_handler();
|
||||
#ifdef HAS_FREE_RTOS
|
||||
vTaskDelay((TickType_t)5);
|
||||
vTaskDelay((TickType_t)15);
|
||||
#else
|
||||
delay(5);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user