Selaa lähdekoodia

As pointed out by @Blue-Marlin the previous code would raise the Z axis

twice for a servo based probe.
jbrazio 9 vuotta sitten
vanhempi
commit
67e15aac3d
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4
    1
      Marlin/Marlin_main.cpp

+ 4
- 1
Marlin/Marlin_main.cpp Näytä tiedosto

@@ -3199,7 +3199,10 @@ inline void gcode_G28() {
3199 3199
       #if ENABLED(Z_PROBE_SLED)
3200 3200
         dock_sled(true); // dock the sled
3201 3201
       #elif Z_RAISE_AFTER_PROBING > 0
3202
-        raise_z_after_probing();
3202
+        // Raise Z axis for non-delta and non servo based probes
3203
+        #if !defined(HAS_SERVO_ENDSTOPS) && DISABLED(Z_PROBE_ALLEN_KEY) && DISABLED(Z_PROBE_SLED)
3204
+          raise_z_after_probing();
3205
+        #endif
3203 3206
       #endif
3204 3207
 
3205 3208
     #endif // !DELTA

Loading…
Peruuta
Tallenna