mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-19 11:32:06 +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
|
#if HAS_TFT
|
||||||
#ifdef HAS_FREE_RTOS
|
#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
|
#endif
|
||||||
#else
|
#else
|
||||||
setCPUFast(false); // 80MHz is fine for our slow peripherals
|
setCPUFast(false); // 80MHz is fine for our slow peripherals
|
||||||
@ -1176,7 +1176,7 @@ void tft_task_handler(void *param = nullptr)
|
|||||||
if (deviceScreen)
|
if (deviceScreen)
|
||||||
deviceScreen->task_handler();
|
deviceScreen->task_handler();
|
||||||
#ifdef HAS_FREE_RTOS
|
#ifdef HAS_FREE_RTOS
|
||||||
vTaskDelay((TickType_t)5);
|
vTaskDelay((TickType_t)15);
|
||||||
#else
|
#else
|
||||||
delay(5);
|
delay(5);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user