Add delta_height variable in lieu of using home_offset

This commit is contained in:
Thomas Moore
2017-11-08 22:10:08 -06:00
parent 09b05c9d79
commit f34c3597dc
9 changed files with 78 additions and 93 deletions

View File

@ -564,11 +564,7 @@ static float run_z_probe(const bool short_move=true) {
}
#endif
return current_position[Z_AXIS] + zprobe_zoffset
#if ENABLED(DELTA)
+ home_offset[Z_AXIS] // Account for delta height adjustment
#endif
;
return current_position[Z_AXIS] + zprobe_zoffset;
}
/**
@ -686,7 +682,7 @@ void refresh_zprobe_zoffset(const bool no_babystep/*=false*/) {
#endif
#if ENABLED(DELTA) // correct the delta_height
home_offset[Z_AXIS] -= diff;
delta_height -= diff;
#endif
}