Fix G26 corrupted position

This commit is contained in:
Scott Lahteine 2020-03-11 19:17:38 -05:00
parent 983a8cee45
commit a96be32fae

View File

@ -640,10 +640,8 @@ void GcodeSuite::G26() {
*/
set_bed_leveling_enabled(!parser.seen('D'));
if (current_position.z < Z_CLEARANCE_BETWEEN_PROBES) {
if (current_position.z < Z_CLEARANCE_BETWEEN_PROBES)
do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
current_position = destination;
}
#if DISABLED(NO_VOLUMETRICS)
bool volumetric_was_enabled = parser.volumetric_enabled;