diff --git a/Marlin/src/gcode/motion/G0_G1.cpp b/Marlin/src/gcode/motion/G0_G1.cpp index 5d5ceddfd..8d485e374 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)