diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 0eba959b15..d6dbc9f38b 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2021,6 +2021,10 @@ static void setup_for_endstop_move() { #endif // !AUTO_BED_LEVELING_GRID +#endif // AUTO_BED_LEVELING_FEATURE + +#if HAS_BED_PROBE + static void run_z_probe() { float old_feedrate = feedrate; @@ -2105,6 +2109,10 @@ static void setup_for_endstop_move() { feedrate = old_feedrate; } +#endif // HAS_BED_PROBE + +#if ENABLED(AUTO_BED_LEVELING_FEATURE) + inline void do_blocking_move_to_xy(float x, float y) { do_blocking_move_to(x, y, current_position[Z_AXIS]); }