|
@@ -1673,7 +1673,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
|
1673
|
1673
|
* Plan a move to (X, Y, Z) and set the current_position
|
1674
|
1674
|
* The final current_position may not be the one that was requested
|
1675
|
1675
|
*/
|
1676
|
|
-void do_blocking_move_to(float x, float y, float z, float fr_mm_s /*=0.0*/) {
|
|
1676
|
+void do_blocking_move_to(const float &x, const float &y, const float &z, const float &fr_mm_s /*=0.0*/) {
|
1677
|
1677
|
float old_feedrate_mm_s = feedrate_mm_s;
|
1678
|
1678
|
|
1679
|
1679
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
@@ -1765,13 +1765,13 @@ void do_blocking_move_to(float x, float y, float z, float fr_mm_s /*=0.0*/) {
|
1765
|
1765
|
|
1766
|
1766
|
feedrate_mm_s = old_feedrate_mm_s;
|
1767
|
1767
|
}
|
1768
|
|
-void do_blocking_move_to_x(float x, float fr_mm_s/*=0.0*/) {
|
|
1768
|
+void do_blocking_move_to_x(const float &x, const float &fr_mm_s/*=0.0*/) {
|
1769
|
1769
|
do_blocking_move_to(x, current_position[Y_AXIS], current_position[Z_AXIS], fr_mm_s);
|
1770
|
1770
|
}
|
1771
|
|
-void do_blocking_move_to_z(float z, float fr_mm_s/*=0.0*/) {
|
|
1771
|
+void do_blocking_move_to_z(const float &z, const float &fr_mm_s/*=0.0*/) {
|
1772
|
1772
|
do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], z, fr_mm_s);
|
1773
|
1773
|
}
|
1774
|
|
-void do_blocking_move_to_xy(float x, float y, float fr_mm_s/*=0.0*/) {
|
|
1774
|
+void do_blocking_move_to_xy(const float &x, const float &y, const float &fr_mm_s/*=0.0*/) {
|
1775
|
1775
|
do_blocking_move_to(x, y, current_position[Z_AXIS], fr_mm_s);
|
1776
|
1776
|
}
|
1777
|
1777
|
|