From 8e23e9b16cff95f2ad39dc8d406053413a17d1f4 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Tue, 25 Jun 2019 03:55:29 -0600 Subject: [PATCH] Fix FIX_MOUNTED_PROBE compile error (#14393) --- Marlin/src/gcode/calibrate/G28.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index 083730823e..22b6880999 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -39,8 +39,9 @@ #include "../../feature/tmc_util.h" #endif -#if HOMING_Z_WITH_PROBE || ENABLED(BLTOUCH) +#if HAS_BED_PROBE #include "../../module/probe.h" + #define STOW_PROBE_BEFORE_HOMING NONE(Z_PROBE_ALLEN_KEY, Z_PROBE_SLED) #endif #include "../../lcd/ultralcd.h" @@ -262,7 +263,7 @@ void GcodeSuite::G28(const bool always_home_all) { set_destination_from_current(); - #if HAS_BED_PROBE + #if STOW_PROBE_BEFORE_HOMING STOW_PROBE(); #endif