Browse Source

Merge pull request #4149 from thinkyhead/rc_minimum_raise_in_probe_pt

Ensure a minimum height before XY move in probe_pt
Scott Lahteine 9 years ago
parent
commit
9caa8941e2
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/Marlin_main.cpp

+ 4
- 2
Marlin/Marlin_main.cpp View File

@@ -2104,7 +2104,10 @@ static void clean_up_after_endstop_or_probe_move() {
2104 2104
 
2105 2105
     float old_feedrate = feedrate;
2106 2106
 
2107
-    // Raise by z_raise, then move the Z probe to the given XY
2107
+    // Ensure a minimum height before moving the probe
2108
+    do_probe_raise(Z_RAISE_BETWEEN_PROBINGS);
2109
+
2110
+    // Move to the XY where we shall probe
2108 2111
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2109 2112
       if (DEBUGGING(LEVELING)) {
2110 2113
         SERIAL_ECHOPAIR("> do_blocking_move_to_xy(", x - (X_PROBE_OFFSET_FROM_EXTRUDER));
@@ -2112,7 +2115,6 @@ static void clean_up_after_endstop_or_probe_move() {
2112 2115
         SERIAL_ECHOLNPGM(")");
2113 2116
       }
2114 2117
     #endif
2115
-
2116 2118
     feedrate = XY_PROBE_FEEDRATE;
2117 2119
     do_blocking_move_to_xy(x - (X_PROBE_OFFSET_FROM_EXTRUDER), y - (Y_PROBE_OFFSET_FROM_EXTRUDER));
2118 2120
 

Loading…
Cancel
Save