From 1c1b59988004622de564b2655af56757ece00182 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 5 Jul 2023 13:45:45 +0200 Subject: [PATCH] fix(monkey): use lv_indev_get_user_data --- src/others/monkey/lv_monkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/others/monkey/lv_monkey.c b/src/others/monkey/lv_monkey.c index 4cc2c92b0..317ff1316 100644 --- a/src/others/monkey/lv_monkey.c +++ b/src/others/monkey/lv_monkey.c @@ -125,7 +125,7 @@ void lv_monkey_del(lv_monkey_t * monkey) static void lv_monkey_read_cb(lv_indev_t * indev, lv_indev_data_t * data) { - lv_monkey_t * monkey = indev->user_data; + lv_monkey_t * monkey = lv_indev_get_user_data(indev); data->btn_id = monkey->indev_data.btn_id; data->point = monkey->indev_data.point;