diff --git a/Marlin/src/gcode/calibrate/G34_M422.cpp b/Marlin/src/gcode/calibrate/G34_M422.cpp index edeb16c71d..620c9fb28f 100644 --- a/Marlin/src/gcode/calibrate/G34_M422.cpp +++ b/Marlin/src/gcode/calibrate/G34_M422.cpp @@ -22,6 +22,8 @@ #include "../../inc/MarlinConfigPre.h" +#if ENABLED(Z_STEPPER_AUTO_ALIGN) + #include "../gcode.h" #include "../../module/planner.h" #include "../../module/stepper.h" @@ -37,14 +39,9 @@ #include "../../module/tool_change.h" #endif - - #define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE) #include "../../core/debug_out.h" -#if ENABLED(Z_STEPPER_AUTO_ALIGN) - - #include "../../feature/z_stepper_align.h" #if ENABLED(Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS)