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

twice for a servo based probe.
This commit is contained in:
jbrazio 2016-03-01 00:22:48 +00:00
parent 17cc2a9663
commit 67e15aac3d

View File

@ -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