diff --git a/lv_core/lv_vdb.c b/lv_core/lv_vdb.c index 6dc2eb37c..3528f8a57 100644 --- a/lv_core/lv_vdb.c +++ b/lv_core/lv_vdb.c @@ -3,16 +3,15 @@ * */ +/********************* + * INCLUDES + *********************/ #include "lv_vdb.h" #if LV_VDB_SIZE != 0 #include "../lv_hal/lv_hal_disp.h" #include -/********************* - * INCLUDES - *********************/ - /********************* * DEFINES *********************/ @@ -34,7 +33,6 @@ typedef enum { * STATIC VARIABLES **********************/ - #if LV_VDB_DOUBLE == 0 /*Simple VDB*/ static volatile lv_vdb_state_t vdb_state = LV_VDB_STATE_ACTIVE; diff --git a/lv_core/lv_vdb.h b/lv_core/lv_vdb.h index 37bee2edb..68ba61268 100644 --- a/lv_core/lv_vdb.h +++ b/lv_core/lv_vdb.h @@ -28,6 +28,10 @@ extern "C" { * DEFINES *********************/ +#ifndef LV_VDB_PX_BPP +#warning "LV_VDB_PX_BPP is not specified in lv_conf.h. Use the default value (LV_COLOR_SIZE)" +#define LV_VDB_PX_BPP LV_COLOR_SIZE +#endif /********************** * TYPEDEFS **********************/ diff --git a/lv_misc/lv_log.c b/lv_misc/lv_log.c index 014cc0470..3124dabd3 100644 --- a/lv_misc/lv_log.c +++ b/lv_misc/lv_log.c @@ -61,7 +61,7 @@ void lv_log_add(lv_log_level_t level, const char * file, uint32_t line, const ch if(level >= LV_LOG_LEVEL) { #if LV_LOG_PRINTF - static const char * lvl_prefix[] = {"Debug", "Trace", "Info", "Warn", "Error"}; + static const char * lvl_prefix[] = {"Trace", "Info", "Warn", "Error"}; printf("%s: %s \t(%s #%d)\n", lvl_prefix[level], dsc, file, line); #else if(print_cb) print_cb(level, file, line, dsc);