mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
docs(timer): fix usage of timer user data (#7575)
This commit is contained in:
parent
d9677acd93
commit
62a2804d97
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user