瀏覽代碼

Merge pull request #1177 from martin-pr/probing_z_speed

Split do_blocking_move() to XY and Z sections
Bo Herrmannsen 10 年之前
父節點
當前提交
889d7ba218
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      Marlin/Marlin_main.cpp

+ 6
- 1
Marlin/Marlin_main.cpp 查看文件

@@ -1050,11 +1050,16 @@ static void run_z_probe() {
1050 1050
 static void do_blocking_move_to(float x, float y, float z) {
1051 1051
     float oldFeedRate = feedrate;
1052 1052
 
1053
+    feedrate = homing_feedrate[Z_AXIS];
1054
+
1055
+    current_position[Z_AXIS] = z;
1056
+    plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder);
1057
+    st_synchronize();
1058
+
1053 1059
     feedrate = XY_TRAVEL_SPEED;
1054 1060
 
1055 1061
     current_position[X_AXIS] = x;
1056 1062
     current_position[Y_AXIS] = y;
1057
-    current_position[Z_AXIS] = z;
1058 1063
     plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate/60, active_extruder);
1059 1064
     st_synchronize();
1060 1065
 

Loading…
取消
儲存