Browse Source

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

twice for a servo based probe.
pull/1/head
jbrazio 8 years ago
parent
commit
67e15aac3d
  1. 5
      Marlin/Marlin_main.cpp

5
Marlin/Marlin_main.cpp

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

Loading…
Cancel
Save