From b3ecede429d90e1a493b02e31b2c1d67411ce5da Mon Sep 17 00:00:00 2001 From: ellensp Date: Sun, 21 Feb 2021 15:14:47 +1300 Subject: [PATCH] Fix G29 missing defines (#21145) Co-authored-by: ellensp --- Marlin/src/module/probe.cpp | 8 -------- Marlin/src/module/probe.h | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp index 8cda039db6..6df115225e 100644 --- a/Marlin/src/module/probe.cpp +++ b/Marlin/src/module/probe.cpp @@ -335,14 +335,6 @@ FORCE_INLINE void probe_specific_action(const bool deploy) { #define PROBING_BED_TEMP 0 #endif #endif - #if ENABLED(PREHEAT_BEFORE_LEVELING) - #ifndef LEVELING_NOZZLE_TEMP - #define LEVELING_NOZZLE_TEMP 0 - #endif - #ifndef LEVELING_BED_TEMP - #define LEVELING_BED_TEMP 0 - #endif - #endif /** * Do preheating as required before leveling or probing. diff --git a/Marlin/src/module/probe.h b/Marlin/src/module/probe.h index d28cdff53a..c8b214370c 100644 --- a/Marlin/src/module/probe.h +++ b/Marlin/src/module/probe.h @@ -44,6 +44,15 @@ #define PROBE_TRIGGERED() (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING) #endif +#if ENABLED(PREHEAT_BEFORE_LEVELING) + #ifndef LEVELING_NOZZLE_TEMP + #define LEVELING_NOZZLE_TEMP 0 + #endif + #ifndef LEVELING_BED_TEMP + #define LEVELING_BED_TEMP 0 + #endif +#endif + class Probe { public: