Skip to content

Commit

Permalink
Fix UBL manual mesh adjust behavior (MarlinFirmware#20248)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjasonsmith authored and zillarob committed Feb 25, 2021
1 parent bc049fb commit ebcda2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
g29_repetition_cnt = 1; // do exactly one mesh location. Otherwise use what the parser decided.

#if ENABLED(UBL_MESH_EDIT_MOVES_Z)
const float h_offset = parser.seenval('H') ? parser.value_linear_units() : 0;
const float h_offset = parser.seenval('H') ? parser.value_linear_units() : MANUAL_PROBE_START_Z;
if (!WITHIN(h_offset, 0, 10)) {
SERIAL_ECHOLNPGM("Offset out of bounds. (0 to 10mm)\n");
return;
Expand All @@ -970,8 +970,6 @@

do_blocking_move_to_xy_z(pos, Z_CLEARANCE_BETWEEN_PROBES); // Move to the given XY with probe clearance

TERN_(UBL_MESH_EDIT_MOVES_Z, do_blocking_move_to_z(h_offset)); // Move Z to the given 'H' offset

MeshFlags done_flags{0};
const xy_int8_t &lpos = location.pos;
do {
Expand Down

0 comments on commit ebcda2b

Please sign in to comment.