瀏覽代碼

no need to use destination in do_pause_e_move

Scott Lahteine 6 年之前
父節點
當前提交
cf0b9eb37c
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. 2
    4
      Marlin/src/feature/pause.cpp

+ 2
- 4
Marlin/src/feature/pause.cpp 查看文件

113
 }
113
 }
114
 
114
 
115
 static void do_pause_e_move(const float &length, const float &fr) {
115
 static void do_pause_e_move(const float &length, const float &fr) {
116
-  set_destination_from_current();
117
-  destination[E_AXIS] += length / planner.e_factor[active_extruder];
118
-  planner.buffer_line(destination, fr, active_extruder);
119
-  set_current_from_destination();
116
+  current_position[E_AXIS] += length / planner.e_factor[active_extruder];
117
+  planner.buffer_line(current_position, fr, active_extruder);
120
   planner.synchronize();
118
   planner.synchronize();
121
 }
119
 }
122
 
120
 

Loading…
取消
儲存