From 62a2804d9796bb10d8d67478ce8b5c64edfe95af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Costa?= Date: Mon, 13 Jan 2025 10:42:46 +0100 Subject: [PATCH] docs(timer): fix usage of timer user data (#7575) --- docs/details/main-components/timer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/details/main-components/timer.rst b/docs/details/main-components/timer.rst index c5fca96b9..759962950 100644 --- a/docs/details/main-components/timer.rst +++ b/docs/details/main-components/timer.rst @@ -49,7 +49,7 @@ For example: void my_timer(lv_timer_t * timer) { /* Use the user_data */ - uint32_t * user_data = timer->user_data; + uint32_t * user_data = lv_timer_get_user_data(timer); printf("my_timer called with user data: %d\n", *user_data); /* Do something with LVGL */