Update xdrv_54_lvgl.ino

Fix compile error with LVGL define and without USE_BERRY defined
This commit is contained in:
mikep1998 2021-07-05 21:49:18 -07:00
parent 551aa10352
commit 5aa1d225d7
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ Adafruit_LvGL_Glue * glue;
// Logging
// **************************************************
#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) {
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"));
}
#endif
#endif
/************************************************************
* Main screen refresh function