lv_task: add user data and pass lv_task_t as task_cb parameter

This commit is contained in:
Gabor Kiss-Vamosi
2019-04-27 11:32:13 +02:00
parent 15c27c8a9b
commit 5243d235a6
6 changed files with 36 additions and 21 deletions

View File

@@ -68,13 +68,13 @@ void lv_indev_init(void)
* Called periodically to read the input devices
* @param param pointer to and input device to read
*/
void lv_indev_read_task(void * param)
void lv_indev_read_task(lv_task_t * task)
{
LV_LOG_TRACE("indev read task started");
lv_indev_data_t data;
indev_act = param;
indev_act = task->user_data;
/*Read and process all indevs*/
if(indev_act->driver.disp == NULL) return; /*Not assigned to any displays*/