From 5f94480bfb8a745968dd03f29d37cb5fd5bcdd5c Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Fri, 22 Feb 2019 12:10:17 -0500 Subject: [PATCH] Don't check LV_LOG_LEVEL unless USE_LV_LOG is enabled --- lv_objx/lv_img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_objx/lv_img.c b/lv_objx/lv_img.c index c9fb42875..b73bff082 100644 --- a/lv_objx/lv_img.c +++ b/lv_objx/lv_img.c @@ -129,7 +129,7 @@ void lv_img_set_src(lv_obj_t * img, const void * src_img) lv_img_src_t src_type = lv_img_src_get_type(src_img); lv_img_ext_t * ext = lv_obj_get_ext_attr(img); -#if LV_LOG_LEVEL >= LV_LOG_LEVEL_INFO +#if USE_LV_LOG && LV_LOG_LEVEL >= LV_LOG_LEVEL_INFO switch(src_type) { case LV_IMG_SRC_FILE: LV_LOG_TRACE("lv_img_set_src: `LV_IMG_SRC_FILE` type found");