z_offset change

Avoids to have to recalibrate the delta_height after a z_offset change
This commit is contained in:
LVD-AC 2017-04-26 20:30:58 +02:00 committed by teemuatlut
parent dcf30a69d6
commit a9bc1d30cc

View File

@ -8488,6 +8488,10 @@ inline void gcode_M503() {
#else #else
UNUSED(no_babystep); UNUSED(no_babystep);
#endif #endif
#if ENABLED(DELTA) // correct the delta_height
home_offset[Z_AXIS] -= diff;
#endif
} }
last_zoffset = zprobe_zoffset; last_zoffset = zprobe_zoffset;