|
@@ -224,13 +224,15 @@ void GcodeSuite::G34() {
|
224
|
224
|
// Safe clearance even on an incline
|
225
|
225
|
if ((iteration == 0 || i > 0) && z_probe > current_position.z) do_blocking_move_to_z(z_probe);
|
226
|
226
|
|
|
227
|
+ xy_pos_t &ppos = z_stepper_align.xy[iprobe];
|
|
228
|
+
|
227
|
229
|
if (DEBUGGING(LEVELING))
|
228
|
|
- DEBUG_ECHOLNPGM_P(PSTR("Probing X"), z_stepper_align.xy[iprobe].x, SP_Y_STR, z_stepper_align.xy[iprobe].y);
|
|
230
|
+ DEBUG_ECHOLNPGM_P(PSTR("Probing X"), ppos.x, SP_Y_STR, ppos.y);
|
229
|
231
|
|
230
|
232
|
// Probe a Z height for each stepper.
|
231
|
233
|
// Probing sanity check is disabled, as it would trigger even in normal cases because
|
232
|
234
|
// current_position.z has been manually altered in the "dirty trick" above.
|
233
|
|
- const float z_probed_height = probe.probe_at_point(z_stepper_align.xy[iprobe], raise_after, 0, true, false);
|
|
235
|
+ const float z_probed_height = probe.probe_at_point(DIFF_TERN(HAS_HOME_OFFSET, ppos, xy_pos_t(home_offset)), raise_after, 0, true, false);
|
234
|
236
|
if (isnan(z_probed_height)) {
|
235
|
237
|
SERIAL_ECHOLNPGM("Probing failed");
|
236
|
238
|
LCD_MESSAGE(MSG_LCD_PROBING_FAILED);
|