Pārlūkot izejas kodu

Merge pull request #3051 from thinkyhead/rcbugfix_dual_axis_offset

Code cleanup in gcode_T
Scott Lahteine 9 gadus atpakaļ
vecāks
revīzija
222d13d5ed
1 mainītis faili ar 2 papildinājumiem un 6 dzēšanām
  1. 2
    6
      Marlin/Marlin_main.cpp

+ 2
- 6
Marlin/Marlin_main.cpp Parādīt failu

5621
           }
5621
           }
5622
 
5622
 
5623
           // apply Y & Z extruder offset (x offset is already used in determining home pos)
5623
           // apply Y & Z extruder offset (x offset is already used in determining home pos)
5624
-          current_position[Y_AXIS] = current_position[Y_AXIS] -
5625
-                                     extruder_offset[Y_AXIS][active_extruder] +
5626
-                                     extruder_offset[Y_AXIS][tmp_extruder];
5627
-          current_position[Z_AXIS] = current_position[Z_AXIS] -
5628
-                                     extruder_offset[Z_AXIS][active_extruder] +
5629
-                                     extruder_offset[Z_AXIS][tmp_extruder];
5624
+          current_position[Y_AXIS] -= extruder_offset[Y_AXIS][active_extruder] - extruder_offset[Y_AXIS][tmp_extruder];
5625
+          current_position[Z_AXIS] -= extruder_offset[Z_AXIS][active_extruder] - extruder_offset[Z_AXIS][tmp_extruder];
5630
           active_extruder = tmp_extruder;
5626
           active_extruder = tmp_extruder;
5631
 
5627
 
5632
           // This function resets the max/min values - the current position may be overwritten below.
5628
           // This function resets the max/min values - the current position may be overwritten below.

Notiek ielāde…
Atcelt
Saglabāt