1
0
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:
André Costa 2025-01-13 10:42:46 +01:00 committed by GitHub
parent d9677acd93
commit 62a2804d97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 */