Browse Source

Fix UBL manual mesh adjust behavior (#20248)

Jason Smith 4 years ago
parent
commit
9dedd121bf
No account linked to committer's email address
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 1
- 3
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp View File

@@ -949,7 +949,7 @@
949 949
         g29_repetition_cnt = 1;   // do exactly one mesh location. Otherwise use what the parser decided.
950 950
 
951 951
       #if ENABLED(UBL_MESH_EDIT_MOVES_Z)
952
-        const float h_offset = parser.seenval('H') ? parser.value_linear_units() : 0;
952
+        const float h_offset = parser.seenval('H') ? parser.value_linear_units() : MANUAL_PROBE_START_Z;
953 953
         if (!WITHIN(h_offset, 0, 10)) {
954 954
           SERIAL_ECHOLNPGM("Offset out of bounds. (0 to 10mm)\n");
955 955
           return;
@@ -970,8 +970,6 @@
970 970
 
971 971
       do_blocking_move_to_xy_z(pos, Z_CLEARANCE_BETWEEN_PROBES);  // Move to the given XY with probe clearance
972 972
 
973
-      TERN_(UBL_MESH_EDIT_MOVES_Z, do_blocking_move_to_z(h_offset));  // Move Z to the given 'H' offset
974
-
975 973
       MeshFlags done_flags{0};
976 974
       const xy_int8_t &lpos = location.pos;
977 975
       do {

Loading…
Cancel
Save