浏览代码

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
           }
5616
           }
5617
 
5617
 
5618
           // apply Y & Z extruder offset (x offset is already used in determining home pos)
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
           active_extruder = tmp_extruder;
5621
           active_extruder = tmp_extruder;
5626
 
5622
 
5627
           // This function resets the max/min values - the current position may be overwritten below.
5623
           // This function resets the max/min values - the current position may be overwritten below.

正在加载...
取消
保存