From bcef7ad91bc2ed25c1c49a40b541215138fc0e26 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 10 Oct 2020 12:34:08 -0500 Subject: [PATCH] ibid --- Marlin/src/gcode/calibrate/G34_M422.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Marlin/src/gcode/calibrate/G34_M422.cpp b/Marlin/src/gcode/calibrate/G34_M422.cpp index 620c9fb28f..342a4baec1 100644 --- a/Marlin/src/gcode/calibrate/G34_M422.cpp +++ b/Marlin/src/gcode/calibrate/G34_M422.cpp @@ -25,6 +25,8 @@ #if ENABLED(Z_STEPPER_AUTO_ALIGN) #include "../gcode.h" +#include "../../feature/z_stepper_align.h" + #include "../../module/planner.h" #include "../../module/stepper.h" #include "../../module/motion.h" @@ -35,8 +37,8 @@ #include "../../feature/bedlevel/bedlevel.h" #endif -#if HAS_MULTI_HOTEND - #include "../../module/tool_change.h" +#if ENABLED(Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS) + #include "../../libs/least_squares_fit.h" #endif #define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)