diff --git a/Marlin/src/gcode/motion/G0_G1.cpp b/Marlin/src/gcode/motion/G0_G1.cpp index 5d5ceddfd3..8d485e3744 100644 --- a/Marlin/src/gcode/motion/G0_G1.cpp +++ b/Marlin/src/gcode/motion/G0_G1.cpp @@ -31,6 +31,10 @@ #include "../../sd/cardreader.h" +#if ENABLED(NANODLP_Z_SYNC) + #include "../../module/stepper.h" +#endif + extern float destination[XYZE]; #if ENABLED(NO_MOTION_BEFORE_HOMING)