mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Update xdrv_54_lvgl.ino (#12574)
Fix compile error with LVGL define and without USE_BERRY defined
This commit is contained in:
parent
fb9a34ccbd
commit
9fd3ed597f
@ -42,6 +42,7 @@ Adafruit_LvGL_Glue * glue;
|
|||||||
// Logging
|
// Logging
|
||||||
// **************************************************
|
// **************************************************
|
||||||
#if LV_USE_LOG
|
#if LV_USE_LOG
|
||||||
|
#ifdef USE_BERRY
|
||||||
static void lvbe_debug(lv_log_level_t level, const char *file, uint32_t line, const char *fname, const char *msg);
|
static void lvbe_debug(lv_log_level_t level, const char *file, uint32_t line, const char *fname, const char *msg);
|
||||||
static void lvbe_debug(lv_log_level_t level, const char *file, uint32_t line, const char *fname, const char *msg) {
|
static void lvbe_debug(lv_log_level_t level, const char *file, uint32_t line, const char *fname, const char *msg) {
|
||||||
be_writebuffer("LVG: ", sizeof("LVG: "));
|
be_writebuffer("LVG: ", sizeof("LVG: "));
|
||||||
@ -51,6 +52,7 @@ static void lvbe_debug(lv_log_level_t level, const char *file, uint32_t line, co
|
|||||||
be_writebuffer("\n", sizeof("\n"));
|
be_writebuffer("\n", sizeof("\n"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Main screen refresh function
|
* Main screen refresh function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user