Replace a few loops with set_current_to_destination()
This commit is contained in:
parent
5fa7c178b5
commit
faa9e925fe
1 changed files with 3 additions and 7 deletions
|
@ -8391,9 +8391,7 @@ void prepare_move()
|
||||||
if (waiting_inside_plan_buffer_line_print_aborted)
|
if (waiting_inside_plan_buffer_line_print_aborted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for(int8_t i=0; i < NUM_AXIS; i++) {
|
set_current_to_destination();
|
||||||
current_position[i] = destination[i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void prepare_arc_move(char isclockwise) {
|
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;
|
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);
|
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++) {
|
set_current_to_destination();
|
||||||
current_position[i] = destination[i];
|
|
||||||
}
|
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
|
|
||||||
// printf_P(PSTR("X = %f; Y= %f \n"), current_position[X_AXIS], current_position[Y_AXIS]);
|
// printf_P(PSTR("X = %f; Y= %f \n"), current_position[X_AXIS], current_position[Y_AXIS]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue