Browse Source

Drop raise_z_after_probing function

Scott Lahteine 9 years ago
parent
commit
550c03a5a9
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      Marlin/Marlin_main.cpp

+ 3
- 6
Marlin/Marlin_main.cpp View File

@@ -1729,11 +1729,6 @@ static void clean_up_after_endstop_or_probe_move() {
1729 1729
     }
1730 1730
   }
1731 1731
 
1732
-  inline void raise_z_after_probing() {
1733
-    #if Z_RAISE_AFTER_PROBING > 0
1734
-      do_probe_raise(Z_RAISE_AFTER_PROBING);
1735
-    #endif
1736
-  }
1737 1732
 #endif //HAS_BED_PROBE
1738 1733
 
1739 1734
 #if ENABLED(Z_PROBE_SLED) || ENABLED(Z_SAFE_HOMING) || HAS_PROBING_PROCEDURE
@@ -1781,7 +1776,9 @@ static void clean_up_after_endstop_or_probe_move() {
1781 1776
     float oldXpos = current_position[X_AXIS]; // save x position
1782 1777
     float old_feedrate = feedrate;
1783 1778
     if (dock) {
1784
-      raise_z_after_probing(); // raise Z
1779
+      #if Z_RAISE_AFTER_PROBING > 0
1780
+        do_probe_raise(Z_RAISE_AFTER_PROBING);
1781
+      #endif
1785 1782
       // Dock sled a bit closer to ensure proper capturing
1786 1783
       feedrate = XY_PROBE_FEEDRATE;
1787 1784
       do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1);

Loading…
Cancel
Save