diff --git a/src/lv_misc/lv_log.c b/src/lv_misc/lv_log.c index 7f2ca82db..2bf18acfd 100644 --- a/src/lv_misc/lv_log.c +++ b/src/lv_misc/lv_log.c @@ -75,7 +75,7 @@ void lv_log_add(lv_log_level_t level, const char * file, int line, const char * static const char * lvl_prefix[] = {"Trace", "Info", "Warn", "Error", "User"}; printf("%s: %s \t(%s #%d)\n", lvl_prefix[level], buf, file, line); #else - if(custom_print_cb) custom_print_cb(level, file, line, dsc); + if(custom_print_cb) custom_print_cb(level, file, line, buf); #endif } } diff --git a/src/lv_widgets/lv_dropdown.c b/src/lv_widgets/lv_dropdown.c index c7af3e366..97c60dc6b 100644 --- a/src/lv_widgets/lv_dropdown.c +++ b/src/lv_widgets/lv_dropdown.c @@ -534,7 +534,9 @@ void lv_dropdown_close(lv_obj_t * ddlist, lv_anim_enable_t anim) ext->pr_opt_id = LV_DROPDOWN_PR_NONE; if(ext->anim_time == 0 || anim == LV_ANIM_OFF) { +#if LV_USE_ANIMATION lv_anim_del(ddlist, list_anim); +#endif lv_obj_del(ext->page); ext->page = NULL; } else {