From 3ed0cd444a22539dd60b9eff943e00effa38d3cc Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 11 Nov 2019 12:32:13 +0100 Subject: [PATCH] lv_task: fix crash after executing one shot tasks --- src/lv_misc/lv_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lv_misc/lv_task.c b/src/lv_misc/lv_task.c index af0c95aa6..777d33076 100644 --- a/src/lv_misc/lv_task.c +++ b/src/lv_misc/lv_task.c @@ -123,6 +123,7 @@ LV_ATTRIBUTE_TASK_HANDLER void lv_task_handler(void) task_interrupter = LV_GC_ROOT(_lv_task_act); /*Check all tasks again from the highest priority */ end_flag = false; + if(task_deleted) task_interrupter = NULL; break; } } @@ -133,6 +134,7 @@ LV_ATTRIBUTE_TASK_HANDLER void lv_task_handler(void) 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 */ end_flag = false; + if(task_deleted) task_interrupter = NULL; break; } }