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-06 08:23:38 +02:00
committed by GitHub
parent fb9a34ccbd
commit 9fd3ed597f
+2
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