From a0ae9e30dfd0203d3d5a133ece2eec109b82cd7a Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Wed, 29 Jul 2015 10:24:54 -0500 Subject: [PATCH] don't pass integer by reference, inefficient. (PR#2547) --- Marlin/planner.cpp | 4 ++-- Marlin/planner.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index e985d9937..5f5059f50 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -473,9 +473,9 @@ float junction_deviation = 0.1; // mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration // calculation the caller must also provide the physical length of the line in millimeters. #if defined(ENABLE_AUTO_BED_LEVELING) || defined(MESH_BED_LEVELING) - void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder) + void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t extruder) #else - void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t &extruder) + void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder) #endif // ENABLE_AUTO_BED_LEVELING { // Calculate the buffer head after we push this byte diff --git a/Marlin/planner.h b/Marlin/planner.h index c54ed4411..f79f10938 100644 --- a/Marlin/planner.h +++ b/Marlin/planner.h @@ -97,7 +97,7 @@ FORCE_INLINE uint8_t movesplanned() { return BLOCK_MOD(block_buffer_head - block * Add a new linear movement to the buffer. x, y, z are the signed, absolute target position in * millimeters. Feed rate specifies the (target) speed of the motion. */ - void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder); + void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t extruder); /** * Set the planner positions. Used for G92 instructions. @@ -108,7 +108,7 @@ FORCE_INLINE uint8_t movesplanned() { return BLOCK_MOD(block_buffer_head - block #else - void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t &extruder); + void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder); void plan_set_position(const float &x, const float &y, const float &z, const float &e); #endif // ENABLE_AUTO_BED_LEVELING || MESH_BED_LEVELING