From df1043516e4c94ecc4bc166367c5b3474061aaa9 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 4 Feb 2019 19:25:50 +0800 Subject: [PATCH] Fix the delta homing issue (#12974) --- Marlin/src/module/delta.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/delta.cpp b/Marlin/src/module/delta.cpp index a7537843d..08faa3f0b 100644 --- a/Marlin/src/module/delta.cpp +++ b/Marlin/src/module/delta.cpp @@ -37,6 +37,10 @@ #include "../lcd/ultralcd.h" #include "../Marlin.h" +#if HAS_BED_PROBE + #include "probe.h" +#endif + #if ENABLED(SENSORLESS_HOMING) #include "../feature/tmc_util.h" #include "stepper_indirection.h" @@ -229,7 +233,11 @@ void home_delta() { #endif // Move all carriages together linearly until an endstop is hit. - destination[Z_AXIS] = (delta_height + 10); + destination[Z_AXIS] = (delta_height + #if HAS_BED_PROBE + - zprobe_zoffset + #endif + + 10); buffer_line_to_destination(homing_feedrate(X_AXIS)); planner.synchronize();