Skip to content

Commit

Permalink
Fix Z-raise; do not return to start position
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot committed Apr 1, 2021
1 parent c61d258 commit ebd5965
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Marlin/src/gcode/bedlevel/G26.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ebd5965

Please sign in to comment.