Browse Source

Fix G29 missing defines (#21145)

Co-authored-by: ellensp <ellensp@hotmsil.com>
ellensp 3 years ago
parent
commit
b3ecede429
No account linked to committer's email address
2 changed files with 9 additions and 8 deletions
  1. 0
    8
      Marlin/src/module/probe.cpp
  2. 9
    0
      Marlin/src/module/probe.h

+ 0
- 8
Marlin/src/module/probe.cpp View File

@@ -335,14 +335,6 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
335 335
       #define PROBING_BED_TEMP 0
336 336
     #endif
337 337
   #endif
338
-  #if ENABLED(PREHEAT_BEFORE_LEVELING)
339
-    #ifndef LEVELING_NOZZLE_TEMP
340
-      #define LEVELING_NOZZLE_TEMP 0
341
-    #endif
342
-    #ifndef LEVELING_BED_TEMP
343
-      #define LEVELING_BED_TEMP 0
344
-    #endif
345
-  #endif
346 338
 
347 339
   /**
348 340
    * Do preheating as required before leveling or probing.

+ 9
- 0
Marlin/src/module/probe.h View File

@@ -44,6 +44,15 @@
44 44
   #define PROBE_TRIGGERED() (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING)
45 45
 #endif
46 46
 
47
+#if ENABLED(PREHEAT_BEFORE_LEVELING)
48
+  #ifndef LEVELING_NOZZLE_TEMP
49
+    #define LEVELING_NOZZLE_TEMP 0
50
+  #endif
51
+  #ifndef LEVELING_BED_TEMP
52
+    #define LEVELING_BED_TEMP 0
53
+  #endif
54
+#endif
55
+
47 56
 class Probe {
48 57
 public:
49 58
 

Loading…
Cancel
Save