Made plan_buffer_line arguments const, which optimizes better and fixes the RUNOUT_PREVENTION feature.

This commit is contained in:
Daid
2012-02-29 11:38:12 +01:00
parent c6f2ec3c82
commit 88d289caa1
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void plan_init();
// Add a new linear movement to the buffer. x, y and z is the signed, absolute target position in
// millimaters. Feed rate specifies the speed of the motion.
void plan_buffer_line(float &x, float &y, float &z, float &e, float feed_rate, 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);
// Set position. Used for G92 instructions.
void plan_set_position(const float &x, const float &y, const float &z, const float &e);