BigW Consortium Gitlab

Commit fc8ee119 by Gabor Kiss-Vamosi

start lv_refr_task immediately on start up (don't need to wait it's period to refresh the screen)

parent 6be0089c
......@@ -70,7 +70,7 @@ void lv_refr_init(void)
lv_task_t* task;
task = lv_task_create(lv_refr_task, LV_REFR_PERIOD, LV_TASK_PRIO_MID, NULL);
lv_mem_assert(task);
lv_task_ready(task); /*Be sure the screen will be refreshed immediately on start up*/
}
/**
......@@ -168,6 +168,8 @@ void lv_refr_pop_from_buf(uint16_t num)
*/
static void lv_refr_task(void * param)
{
printf("refr\n");
(void)param;
uint32_t start = lv_tick_get();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment