From bdb2dd27adb9b7c37cb580d250bfa478ec1eb8ac Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 11 Aug 2018 22:33:33 -0500 Subject: [PATCH] Allow G33 to compile with no LCD --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 6a30d9909c..d8762a06db 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -5671,7 +5671,7 @@ void home_all_axes() { gcode_G28(true); } #endif } - #if HAS_BED_PROBE + #if HAS_BED_PROBE && ENABLED(ULTIPANEL) static float probe_z_shift(const float center) { STOW_PROBE(); endstops.enable_z_probe(false); @@ -6055,7 +6055,7 @@ void home_all_axes() { gcode_G28(true); } switch (probe_points) { case -1: - #if HAS_BED_PROBE + #if HAS_BED_PROBE && ENABLED(ULTIPANEL) zprobe_zoffset += probe_z_shift(z_at_pt[CEN]); #endif