diff --git a/Marlin/src/module/tool_change.cpp b/Marlin/src/module/tool_change.cpp index 7363e68f51..e5ea339721 100644 --- a/Marlin/src/module/tool_change.cpp +++ b/Marlin/src/module/tool_change.cpp @@ -46,6 +46,10 @@ #include "../feature/mixing.h" #endif +#if HAS_LEVELING + #include "../feature/bedlevel/bedlevel.h" +#endif + #if ENABLED(SWITCHING_EXTRUDER) #if EXTRUDERS > 3