minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2018-08-04 08:45:22 +02:00
parent f968792286
commit 7a2693e4f1
3 changed files with 8 additions and 6 deletions

View File

@@ -3,16 +3,15 @@
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_vdb.h"
#if LV_VDB_SIZE != 0
#include "../lv_hal/lv_hal_disp.h"
#include <stddef.h>
/*********************
* 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;

View File

@@ -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
**********************/

View File

@@ -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);