Ver código fonte

minor cleanup in gcode_T

Scott Lahteine 9 anos atrás
pai
commit
100271e6ac
1 arquivos alterados com 2 adições e 6 exclusões
  1. 2
    6
      Marlin/Marlin_main.cpp

+ 2
- 6
Marlin/Marlin_main.cpp Ver arquivo

@@ -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.

Carregando…
Cancelar
Salvar