From d27b3b54fad5623b295527031c2e89285a91123b Mon Sep 17 00:00:00 2001 From: Victor Mateus Oliveira Date: Thu, 5 Nov 2020 23:23:35 -0300 Subject: [PATCH] fix error for lvgl --- Marlin/src/gcode/lcd/M995.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Marlin/src/gcode/lcd/M995.cpp b/Marlin/src/gcode/lcd/M995.cpp index 72d0d29f76..b35225614e 100644 --- a/Marlin/src/gcode/lcd/M995.cpp +++ b/Marlin/src/gcode/lcd/M995.cpp @@ -25,15 +25,19 @@ #if ENABLED(TOUCH_SCREEN_CALIBRATION) #include "../gcode.h" -#include "../../lcd/menu/menu.h" +#if DISABLED(TFT_LVGL_UI) + #include "../../lcd/menu/menu.h" +#endif /** * M995: Touch screen calibration for TFT display */ void GcodeSuite::M995() { - - ui.goto_screen(touch_screen_calibration); - + #if DISABLED(TFT_LVGL_UI) + ui.goto_screen(touch_screen_calibration); + #else + //TODO: show LVGL UI calibration screen + #endif } #endif // TOUCH_SCREEN_CALIBRATION