|
@@ -126,6 +126,12 @@ void GcodeSuite::G34() {
|
126
|
126
|
extruder_duplication_enabled = false;
|
127
|
127
|
#endif
|
128
|
128
|
|
|
129
|
+ // Before moving other axes raise Z, if needed. Never lower Z.
|
|
130
|
+ if (current_position[Z_AXIS] < Z_CLEARANCE_BETWEEN_PROBES) {
|
|
131
|
+ if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Raise Z (before moving to probe pos) to ", Z_CLEARANCE_BETWEEN_PROBES);
|
|
132
|
+ do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
|
|
133
|
+ }
|
|
134
|
+
|
129
|
135
|
// Remember corrections to determine errors on each iteration
|
130
|
136
|
float last_z_align_move[Z_STEPPER_COUNT] = ARRAY_N(Z_STEPPER_COUNT, 10000.0f, 10000.0f, 10000.0f),
|
131
|
137
|
z_measured[Z_STEPPER_COUNT] = { 0 };
|