mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 05:26:18 +08:00
place some lv_log_add calls
This commit is contained in:
@@ -53,6 +53,11 @@ static lv_design_func_t ancestor_design;
|
||||
*/
|
||||
lv_obj_t * lv_templ_create(lv_obj_t * par, lv_obj_t * copy)
|
||||
{
|
||||
|
||||
#if USE_LV_LOG
|
||||
lv_log_add(LV_LOG_LEVEL_TRACE, __FILE__, __LINE__, "template create stared");
|
||||
#endif
|
||||
|
||||
/*Create the ancestor of template*/
|
||||
/*TODO modify it to the ancestor create function */
|
||||
lv_obj_t * new_templ = lv_ANCESTOR_create(par, copy);
|
||||
@@ -82,6 +87,9 @@ lv_obj_t * lv_templ_create(lv_obj_t * par, lv_obj_t * copy)
|
||||
/*Refresh the style with new signal function*/
|
||||
lv_obj_refresh_style(new_templ);
|
||||
}
|
||||
#if USE_LV_LOG
|
||||
lv_log_add(LV_LOG_LEVEL_INFO, __FILE__, __LINE__, "template create ready");
|
||||
#endif
|
||||
|
||||
return new_templ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user