Skip to content

Commit c8d3f7e

Browse files
committed
samples: modules: lvgl: demos: Migrate to v9.2
This patch changes the usage of LVGL functions which are typedefed in the api map to their new version to anticipate their deprecation. Signed-off-by: Fabian Blatz <[email protected]>
1 parent 478f7ec commit c8d3f7e

File tree

1 file changed

+2
-2
lines changed
  • samples/modules/lvgl/demos/src

1 file changed

+2
-2
lines changed

samples/modules/lvgl/demos/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ int main(void)
3838
CONFIG_LV_USE_DEMO_STRESS, or CONFIG_LV_USE_DEMO_WIDGETS
3939
#endif
4040

41-
lv_task_handler();
41+
lv_timer_handler();
4242
display_blanking_off(display_dev);
4343
#ifdef CONFIG_LV_Z_MEM_POOL_SYS_HEAP
4444
lvgl_print_heap_info(false);
4545
#else
4646
printf("lvgl in malloc mode\n");
4747
#endif
4848
while (1) {
49-
uint32_t sleep_ms = lv_task_handler();
49+
uint32_t sleep_ms = lv_timer_handler();
5050

5151
k_msleep(MIN(sleep_ms, INT32_MAX));
5252
}

0 commit comments

Comments
 (0)