From a9bc1d30cc0e5c9105a0aa3729f45d34ab2c764b Mon Sep 17 00:00:00 2001 From: LVD-AC Date: Wed, 26 Apr 2017 20:30:58 +0200 Subject: [PATCH] z_offset change Avoids to have to recalibrate the delta_height after a z_offset change --- Marlin/Marlin_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 08b25e233..44d77a796 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -8488,6 +8488,10 @@ inline void gcode_M503() { #else UNUSED(no_babystep); #endif + + #if ENABLED(DELTA) // correct the delta_height + home_offset[Z_AXIS] -= diff; + #endif } last_zoffset = zprobe_zoffset;