From 468f34104b0e71a3561d2dd99756220f90671e54 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 12 Mar 2018 08:16:08 -0500 Subject: [PATCH] Patch do_blocking_move_to so 'destination' can be used --- Marlin/src/module/motion.cpp | 2 +- Marlin/src/module/motion.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index a12a98716..c34e163fd 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -290,7 +290,7 @@ void buffer_line_to_destination(const float fr_mm_s) { * Plan a move to (X, Y, Z) and set the current_position * The final current_position may not be the one that was requested */ -void do_blocking_move_to(const float &rx, const float &ry, const float &rz, const float &fr_mm_s/*=0.0*/) { +void do_blocking_move_to(const float rx, const float ry, const float rz, const float &fr_mm_s/*=0.0*/) { const float old_feedrate_mm_s = feedrate_mm_s; #if ENABLED(DEBUG_LEVELING_FEATURE) diff --git a/Marlin/src/module/motion.h b/Marlin/src/module/motion.h index 78ef15524..928e9f0f1 100644 --- a/Marlin/src/module/motion.h +++ b/Marlin/src/module/motion.h @@ -149,10 +149,10 @@ void prepare_move_to_destination(); /** * Blocking movement and shorthand functions */ -void do_blocking_move_to(const float &x, const float &y, const float &z, const float &fr_mm_s=0.0); -void do_blocking_move_to_x(const float &x, const float &fr_mm_s=0.0); -void do_blocking_move_to_z(const float &z, const float &fr_mm_s=0.0); -void do_blocking_move_to_xy(const float &x, const float &y, const float &fr_mm_s=0.0); +void do_blocking_move_to(const float rx, const float ry, const float rz, const float &fr_mm_s=0.0); +void do_blocking_move_to_x(const float &rx, const float &fr_mm_s=0.0); +void do_blocking_move_to_z(const float &rz, const float &fr_mm_s=0.0); +void do_blocking_move_to_xy(const float &rx, const float &ry, const float &fr_mm_s=0.0); void setup_for_endstop_or_probe_move(); void clean_up_after_endstop_or_probe_move();