diff --git a/src/lv_core/lv_obj.c b/src/lv_core/lv_obj.c index 06ab576952d9..c9880a346eb9 100644 --- a/src/lv_core/lv_obj.c +++ b/src/lv_core/lv_obj.c @@ -125,7 +125,9 @@ void lv_init(void) void lv_deinit(void) { lv_gc_clear_roots(); +#if LV_USE_LOG lv_log_register_print_cb(NULL); +#endif lv_disp_set_default(NULL); lv_mem_deinit(); lv_initialized = false;