Browse Source

Fix FIX_MOUNTED_PROBE compile error (#14393)

Marcio Teixeira 5 years ago
parent
commit
8e23e9b16c
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/src/gcode/calibrate/G28.cpp

+ 3
- 2
Marlin/src/gcode/calibrate/G28.cpp View File

@@ -39,8 +39,9 @@
39 39
   #include "../../feature/tmc_util.h"
40 40
 #endif
41 41
 
42
-#if HOMING_Z_WITH_PROBE || ENABLED(BLTOUCH)
42
+#if HAS_BED_PROBE
43 43
   #include "../../module/probe.h"
44
+  #define STOW_PROBE_BEFORE_HOMING NONE(Z_PROBE_ALLEN_KEY, Z_PROBE_SLED)
44 45
 #endif
45 46
 
46 47
 #include "../../lcd/ultralcd.h"
@@ -262,7 +263,7 @@ void GcodeSuite::G28(const bool always_home_all) {
262 263
 
263 264
     set_destination_from_current();
264 265
 
265
-    #if HAS_BED_PROBE
266
+    #if STOW_PROBE_BEFORE_HOMING
266 267
       STOW_PROBE();
267 268
     #endif
268 269
 

Loading…
Cancel
Save