ソースを参照

Patch do_blocking_move_to so 'destination' can be used

Scott Lahteine 7年前
コミット
468f34104b
2個のファイルの変更5行の追加5行の削除
  1. 1
    1
      Marlin/src/module/motion.cpp
  2. 4
    4
      Marlin/src/module/motion.h

+ 1
- 1
Marlin/src/module/motion.cpp ファイルの表示

@@ -290,7 +290,7 @@ void buffer_line_to_destination(const float fr_mm_s) {
290 290
  *  Plan a move to (X, Y, Z) and set the current_position
291 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 294
   const float old_feedrate_mm_s = feedrate_mm_s;
295 295
 
296 296
   #if ENABLED(DEBUG_LEVELING_FEATURE)

+ 4
- 4
Marlin/src/module/motion.h ファイルの表示

@@ -149,10 +149,10 @@ void prepare_move_to_destination();
149 149
 /**
150 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 157
 void setup_for_endstop_or_probe_move();
158 158
 void clean_up_after_endstop_or_probe_move();

読み込み中…
キャンセル
保存