From f79137898a9a729b7d06abe1afbd33697dedf154 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Wed, 19 Dec 2018 14:40:10 +0100 Subject: [PATCH] Fix - move down after calibrate Z (PFW718) --- Firmware/Marlin_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 27d729d1..c5fc3029 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -2793,14 +2793,14 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level) lcd_puts_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE2)); } - // Move the print head close to the bed. - current_position[Z_AXIS] = MESH_HOME_Z_SEARCH; - bool endstops_enabled = enable_endstops(false); current_position[Z_AXIS] -= 1; //move 1mm down with disabled endstop plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], homing_feedrate[Z_AXIS] / 40, active_extruder); st_synchronize(); + // Move the print head close to the bed. + current_position[Z_AXIS] = MESH_HOME_Z_SEARCH; + enable_endstops(true); #ifdef TMC2130 tmc2130_home_enter(Z_AXIS_MASK);