From 9fd3ed597f01f59e2ace42a11b322a1ab7ad4f07 Mon Sep 17 00:00:00 2001 From: mikep1998 <44448320+mikep1998@users.noreply.github.com> Date: Mon, 5 Jul 2021 23:23:38 -0700 Subject: [PATCH] Update xdrv_54_lvgl.ino (#12574) Fix compile error with LVGL define and without USE_BERRY defined --- tasmota/xdrv_54_lvgl.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_54_lvgl.ino b/tasmota/xdrv_54_lvgl.ino index b95318e4d..0601ccd6b 100644 --- a/tasmota/xdrv_54_lvgl.ino +++ b/tasmota/xdrv_54_lvgl.ino @@ -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