Replace a few loops with set_current_to_destination()

This commit is contained in:
Yuri D'Elia 2019-10-15 21:20:18 +02:00
parent 5fa7c178b5
commit faa9e925fe

View File

@ -8391,9 +8391,7 @@ void prepare_move()
if (waiting_inside_plan_buffer_line_print_aborted)
return;
for(int8_t i=0; i < NUM_AXIS; i++) {
current_position[i] = destination[i];
}
set_current_to_destination();
}
void prepare_arc_move(char isclockwise) {
@ -9115,9 +9113,7 @@ void bed_check(float x_dimension, float y_dimension, int x_points_num, int y_poi
destination[Y_AXIS] = iy * (y_dimension / (y_points_num - 1)) + shift_y;
mesh_plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], XY_AXIS_FEEDRATE/6, active_extruder);
for(int8_t i=0; i < NUM_AXIS; i++) {
current_position[i] = destination[i];
}
set_current_to_destination();
st_synchronize();
// printf_P(PSTR("X = %f; Y= %f \n"), current_position[X_AXIS], current_position[Y_AXIS]);