mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
lv_task: fix crash after executing one shot tasks
This commit is contained in:
parent
40459e01c9
commit
3ed0cd444a
@ -123,6 +123,7 @@ LV_ATTRIBUTE_TASK_HANDLER void lv_task_handler(void)
|
|||||||
task_interrupter =
|
task_interrupter =
|
||||||
LV_GC_ROOT(_lv_task_act); /*Check all tasks again from the highest priority */
|
LV_GC_ROOT(_lv_task_act); /*Check all tasks again from the highest priority */
|
||||||
end_flag = false;
|
end_flag = false;
|
||||||
|
if(task_deleted) task_interrupter = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -133,6 +134,7 @@ LV_ATTRIBUTE_TASK_HANDLER void lv_task_handler(void)
|
|||||||
if(lv_task_exec(LV_GC_ROOT(_lv_task_act))) {
|
if(lv_task_exec(LV_GC_ROOT(_lv_task_act))) {
|
||||||
task_interrupter = LV_GC_ROOT(_lv_task_act); /*Check all tasks again from the highest priority */
|
task_interrupter = LV_GC_ROOT(_lv_task_act); /*Check all tasks again from the highest priority */
|
||||||
end_flag = false;
|
end_flag = false;
|
||||||
|
if(task_deleted) task_interrupter = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user