Bladeren bron

Always raise in deploy_z_probe / stow_z_probe

Scott Lahteine 9 jaren geleden
bovenliggende
commit
bb38c816af
1 gewijzigde bestanden met toevoegingen van 10 en 6 verwijderingen
  1. 10
    6
      Marlin/Marlin_main.cpp

+ 10
- 6
Marlin/Marlin_main.cpp Bestand weergeven

@@ -1811,15 +1811,17 @@ static void clean_up_after_endstop_or_probe_move() {
1811 1811
 
1812 1812
     if (endstops.z_probe_enabled) return;
1813 1813
 
1814
+    // Make room for probe
1815
+    #if Z_RAISE_BEFORE_PROBING > 0
1816
+      do_probe_raise(Z_RAISE_BEFORE_PROBING);
1817
+    #endif
1818
+
1814 1819
     #if ENABLED(Z_PROBE_SLED)
1815 1820
 
1816 1821
       dock_sled(false);
1817 1822
 
1818 1823
     #elif HAS_Z_SERVO_ENDSTOP
1819 1824
 
1820
-      // Make room for Z Servo
1821
-      do_probe_raise(Z_RAISE_BEFORE_PROBING);
1822
-
1823 1825
       // Engage Z Servo endstop if enabled
1824 1826
       DEPLOY_Z_SERVO();
1825 1827
 
@@ -1913,15 +1915,17 @@ static void clean_up_after_endstop_or_probe_move() {
1913 1915
 
1914 1916
     if (!endstops.z_probe_enabled) return;
1915 1917
 
1918
+    // Make more room for the servo
1919
+    #if Z_RAISE_AFTER_PROBING > 0
1920
+      do_probe_raise(Z_RAISE_AFTER_PROBING);
1921
+    #endif
1922
+
1916 1923
     #if ENABLED(Z_PROBE_SLED)
1917 1924
 
1918 1925
       dock_sled(true);
1919 1926
 
1920 1927
     #elif HAS_Z_SERVO_ENDSTOP
1921 1928
 
1922
-      // Make room for the servo
1923
-      do_probe_raise(Z_RAISE_AFTER_PROBING);
1924
-
1925 1929
       // Change the Z servo angle
1926 1930
       STOW_Z_SERVO();
1927 1931
 

Laden…
Annuleren
Opslaan