lv_indev: make possible to delete objects in the read function

This commit is contained in:
Gabor Kiss-Vamosi
2018-07-16 23:24:34 +02:00
parent 3fec97db45
commit 4e2f371fc9

View File

@@ -259,6 +259,7 @@ static void indev_proc_task(void * param)
do {
/*Read the data*/
more_to_read = lv_indev_read(i, &data);
indev_proc_reset_query_handler(i); /*The active object might deleted even in the read function*/
i->proc.state = data.state;
if(i->proc.state == LV_INDEV_STATE_PR) {