minor fixes
This commit is contained in:
@@ -3,16 +3,15 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*********************
|
||||||
|
* INCLUDES
|
||||||
|
*********************/
|
||||||
#include "lv_vdb.h"
|
#include "lv_vdb.h"
|
||||||
#if LV_VDB_SIZE != 0
|
#if LV_VDB_SIZE != 0
|
||||||
|
|
||||||
#include "../lv_hal/lv_hal_disp.h"
|
#include "../lv_hal/lv_hal_disp.h"
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
/*********************
|
|
||||||
* INCLUDES
|
|
||||||
*********************/
|
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
*********************/
|
*********************/
|
||||||
@@ -34,7 +33,6 @@ typedef enum {
|
|||||||
* STATIC VARIABLES
|
* STATIC VARIABLES
|
||||||
**********************/
|
**********************/
|
||||||
|
|
||||||
|
|
||||||
#if LV_VDB_DOUBLE == 0
|
#if LV_VDB_DOUBLE == 0
|
||||||
/*Simple VDB*/
|
/*Simple VDB*/
|
||||||
static volatile lv_vdb_state_t vdb_state = LV_VDB_STATE_ACTIVE;
|
static volatile lv_vdb_state_t vdb_state = LV_VDB_STATE_ACTIVE;
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ extern "C" {
|
|||||||
* DEFINES
|
* 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
|
* TYPEDEFS
|
||||||
**********************/
|
**********************/
|
||||||
|
|||||||
@@ -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(level >= LV_LOG_LEVEL) {
|
||||||
|
|
||||||
#if LV_LOG_PRINTF
|
#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);
|
printf("%s: %s \t(%s #%d)\n", lvl_prefix[level], dsc, file, line);
|
||||||
#else
|
#else
|
||||||
if(print_cb) print_cb(level, file, line, dsc);
|
if(print_cb) print_cb(level, file, line, dsc);
|
||||||
|
|||||||
Reference in New Issue
Block a user