From ebd596547393a84ab3780137d604fdd38d5b8e76 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Thu, 1 Apr 2021 09:58:17 -0600 Subject: [PATCH] Fix Z-raise; do not return to start position --- Marlin/src/gcode/bedlevel/G26.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/src/gcode/bedlevel/G26.cpp b/Marlin/src/gcode/bedlevel/G26.cpp index 5bfbff33054f..09d68739e5a8 100644 --- a/Marlin/src/gcode/bedlevel/G26.cpp +++ b/Marlin/src/gcode/bedlevel/G26.cpp @@ -167,7 +167,7 @@ float g26_random_deviation = 0.0; #endif -void move_to(const float &rx, const float &ry, const float &z, const float &e_delta) { +void move_to(float rx, float ry, float z, float e_delta) { static float last_z = -999.99; const xy_pos_t dest = { rx, ry }; @@ -859,7 +859,6 @@ void GcodeSuite::G26() { g26.retract_filament(destination); destination.z = Z_CLEARANCE_BETWEEN_PROBES; move_to(destination, 0); // Raise the nozzle - move_to(g26.xy_pos, 0); // Move back to the starting position #if DISABLED(NO_VOLUMETRICS) parser.volumetric_enabled = volumetric_was_enabled;