Do not set current_position in mesh_plan_buffer_line

This is a task which _has_ to be performed by the caller,
such as prepare_move().
This commit is contained in:
Yuri D'Elia 2019-10-15 21:14:28 +02:00
parent 0f6b9b4051
commit 5fa7c178b5

View file

@ -8369,10 +8369,6 @@ void clamp_to_software_endstops(float target[3])
}
// The rest of the path.
plan_buffer_line(x, y, z, e, feed_rate, extruder);
current_position[X_AXIS] = x;
current_position[Y_AXIS] = y;
current_position[Z_AXIS] = z;
current_position[E_AXIS] = e;
}
#endif // MESH_BED_LEVELING