Skip to content

Commit 9a69db7

Browse files
faxe1008nashif
authored andcommitted
modules: lvgl: Register print callback after lv_init
Move initialization of the print callback handler after calling lv_init, as the latter zeroes the global callback structure. Signed-off-by: Fabian Blatz <[email protected]> (cherry picked from commit 5cffb8e)
1 parent e3248cd commit 9a69db7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/lvgl/lvgl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ static int lvgl_init(void)
209209
lvgl_heap_init();
210210
#endif
211211

212+
lv_init();
213+
212214
#if CONFIG_LV_Z_LOG_LEVEL != 0
213215
lv_log_register_print_cb(lvgl_log);
214216
#endif
215217

216-
lv_init();
217-
218218
#ifdef CONFIG_LV_Z_USE_FILESYSTEM
219219
lvgl_fs_init();
220220
#endif

0 commit comments

Comments
 (0)