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