void
April 23, 2021, 11:55am
#1
Hello everyone!
ive tried to use lv_task_once and got segmentation fault.
lvgl is on SBC framebuffer
library version : 7.10 i think
void samplemethod(void)
{
//somecode
}
task prototype void _LVGL_sample_task(lv_task_t * task){samplemethod();}
actual call lv_task_once(_LVGL_sample_task);
lv_task_once
should be called on the return value from lv_task_create
. Your compiler should be able to warn you of this if it’s configured correctly.
void
April 26, 2021, 5:22am
#3
static uint32_t user_data = 10;
lv_task_once(lv_task_create(_LVGL_set_f0_const, 1000, LV_TASK_PRIO_LOWEST, &user_data));
am i right?