Update xdrv_54_lvgl.ino (#12574)

Fix compile error with LVGL define and without USE_BERRY defined
This commit is contained in:
mikep1998 2021-07-05 23:23:38 -07:00 committed by GitHub
parent fb9a34ccbd
commit 9fd3ed597f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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