瀏覽代碼

minor cleanup in gcode_T

Scott Lahteine 9 年之前
父節點
當前提交
100271e6ac
共有 1 個檔案被更改,包括 2 行新增6 行删除
  1. 2
    6
      Marlin/Marlin_main.cpp

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

@@ -5616,12 +5616,8 @@ inline void gcode_T(uint8_t tmp_extruder) {
5616 5616
           }
5617 5617
 
5618 5618
           // apply Y & Z extruder offset (x offset is already used in determining home pos)
5619
-          current_position[Y_AXIS] = current_position[Y_AXIS] -
5620
-                                     extruder_offset[Y_AXIS][active_extruder] +
5621
-                                     extruder_offset[Y_AXIS][tmp_extruder];
5622
-          current_position[Z_AXIS] = current_position[Z_AXIS] -
5623
-                                     extruder_offset[Z_AXIS][active_extruder] +
5624
-                                     extruder_offset[Z_AXIS][tmp_extruder];
5619
+          current_position[Y_AXIS] -= extruder_offset[Y_AXIS][active_extruder] - extruder_offset[Y_AXIS][tmp_extruder];
5620
+          current_position[Z_AXIS] -= extruder_offset[Z_AXIS][active_extruder] - extruder_offset[Z_AXIS][tmp_extruder];
5625 5621
           active_extruder = tmp_extruder;
5626 5622
 
5627 5623
           // This function resets the max/min values - the current position may be overwritten below.

Loading…
取消
儲存