Skip to content
Snippets Groups Projects
Commit e2dd2268 authored by Giuliano Zaro's avatar Giuliano Zaro Committed by Scott Lahteine
Browse files

Add a Z raise-between-probes to G34 (#13791)

parent 0f9c49cc
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,12 @@ void GcodeSuite::G34() { ...@@ -126,6 +126,12 @@ void GcodeSuite::G34() {
extruder_duplication_enabled = false; extruder_duplication_enabled = false;
#endif #endif
// Before moving other axes raise Z, if needed. Never lower Z.
if (current_position[Z_AXIS] < Z_CLEARANCE_BETWEEN_PROBES) {
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Raise Z (before moving to probe pos) to ", Z_CLEARANCE_BETWEEN_PROBES);
do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
}
// Remember corrections to determine errors on each iteration // Remember corrections to determine errors on each iteration
float last_z_align_move[Z_STEPPER_COUNT] = ARRAY_N(Z_STEPPER_COUNT, 10000.0f, 10000.0f, 10000.0f), float last_z_align_move[Z_STEPPER_COUNT] = ARRAY_N(Z_STEPPER_COUNT, 10000.0f, 10000.0f, 10000.0f),
z_measured[Z_STEPPER_COUNT] = { 0 }; z_measured[Z_STEPPER_COUNT] = { 0 };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment