display优先级调为最低,避免滚动字幕消耗过多CPU

This commit is contained in:
Terrence
2025-03-04 07:33:49 +08:00
parent 5997ff2ac4
commit 1a808962e2
5 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#include "background_task.h"
#include <esp_log.h>
#include <esp_task_wdt.h>
#define TAG "BackgroundTask"
@@ -8,7 +9,7 @@ BackgroundTask::BackgroundTask(uint32_t stack_size) {
xTaskCreate([](void* arg) {
BackgroundTask* task = (BackgroundTask*)arg;
task->BackgroundTaskLoop();
}, "background_task", stack_size, this, 1, &background_task_handle_);
}, "background_task", stack_size, this, 2, &background_task_handle_);
}
BackgroundTask::~BackgroundTask() {