Bläddra i källkod

Patch do_blocking_move_to so 'destination' can be used

Scott Lahteine 7 år sedan
förälder
incheckning
468f34104b
2 ändrade filer med 5 tillägg och 5 borttagningar
  1. 1
    1
      Marlin/src/module/motion.cpp
  2. 4
    4
      Marlin/src/module/motion.h

+ 1
- 1
Marlin/src/module/motion.cpp Visa fil

290
  *  Plan a move to (X, Y, Z) and set the current_position
290
  *  Plan a move to (X, Y, Z) and set the current_position
291
  *  The final current_position may not be the one that was requested
291
  *  The final current_position may not be the one that was requested
292
  */
292
  */
293
-void do_blocking_move_to(const float &rx, const float &ry, const float &rz, const float &fr_mm_s/*=0.0*/) {
293
+void do_blocking_move_to(const float rx, const float ry, const float rz, const float &fr_mm_s/*=0.0*/) {
294
   const float old_feedrate_mm_s = feedrate_mm_s;
294
   const float old_feedrate_mm_s = feedrate_mm_s;
295
 
295
 
296
   #if ENABLED(DEBUG_LEVELING_FEATURE)
296
   #if ENABLED(DEBUG_LEVELING_FEATURE)

+ 4
- 4
Marlin/src/module/motion.h Visa fil

149
 /**
149
 /**
150
  * Blocking movement and shorthand functions
150
  * Blocking movement and shorthand functions
151
  */
151
  */
152
-void do_blocking_move_to(const float &x, const float &y, const float &z, const float &fr_mm_s=0.0);
153
-void do_blocking_move_to_x(const float &x, const float &fr_mm_s=0.0);
154
-void do_blocking_move_to_z(const float &z, const float &fr_mm_s=0.0);
155
-void do_blocking_move_to_xy(const float &x, const float &y, const float &fr_mm_s=0.0);
152
+void do_blocking_move_to(const float rx, const float ry, const float rz, const float &fr_mm_s=0.0);
153
+void do_blocking_move_to_x(const float &rx, const float &fr_mm_s=0.0);
154
+void do_blocking_move_to_z(const float &rz, const float &fr_mm_s=0.0);
155
+void do_blocking_move_to_xy(const float &rx, const float &ry, const float &fr_mm_s=0.0);
156
 
156
 
157
 void setup_for_endstop_or_probe_move();
157
 void setup_for_endstop_or_probe_move();
158
 void clean_up_after_endstop_or_probe_move();
158
 void clean_up_after_endstop_or_probe_move();

Laddar…
Avbryt
Spara