Commit aabd3a18 authored by Fabian Blatz's avatar Fabian Blatz Committed by Dan Kalowsky
Browse files

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: default avatarFabian Blatz <fabianblatz@gmail.com>
(cherry picked from commit 5cffb8e5)
parent 5bef9327
Loading
Loading
Loading
Loading
+2 −2
Changes for modules/lvgl/lvgl.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -209,12 +209,12 @@ static int lvgl_init(void)
	lvgl_heap_init();
#endif

	lv_init();

#if CONFIG_LV_Z_LOG_LEVEL != 0
	lv_log_register_print_cb(lvgl_log);
#endif

	lv_init();

#ifdef CONFIG_LV_Z_USE_FILESYSTEM
	lvgl_fs_init();
#endif