bdk: lvgl: make sure task has a task to call

This commit is contained in:
CTCaer
2025-11-11 13:17:34 +02:00
parent 453ec18048
commit 0737f27ba0
2 changed files with 3 additions and 2 deletions

View File

@@ -316,7 +316,8 @@ static bool lv_task_exec(lv_task_t * lv_task_p)
lv_task_p->last_run = lv_tick_get();
task_deleted = false;
task_created = false;
lv_task_p->task(lv_task_p->param);
if (lv_task_p->task)
lv_task_p->task(lv_task_p->param);
/*Delete if it was a one shot lv_task*/
if(task_deleted == false) { /*The task might be deleted by itself as well*/