Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakkaron committed Oct 6, 2024
1 parent 65dfcba commit 83826b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,10 +1445,10 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
#if ANY(EVENT_GCODE_PARK_T0, EVENT_GCODE_PARK_T1, EVENT_GCODE_PARK_T2, EVENT_GCODE_PARK_T3,\
EVENT_GCODE_PARK_T4, EVENT_GCODE_PARK_T5, EVENT_GCODE_PARK_T6, EVENT_GCODE_PARK_T7)
old_workspace_offset = workspace_offset;
const xyz_pos_t &he = hotend_offset[new_tool];
TERN_(TC_GCODE_USE_GLOBAL_X, workspace_offset.x -= he.x);
TERN_(TC_GCODE_USE_GLOBAL_Y, workspace_offset.y -= he.y);
TERN_(TC_GCODE_USE_GLOBAL_Z, workspace_offset.z -= he.z);
const xyz_pos_t &ho = hotend_offset[new_tool];
TERN_(TC_GCODE_USE_GLOBAL_X, workspace_offset.x -= ho.x);
TERN_(TC_GCODE_USE_GLOBAL_Y, workspace_offset.y -= ho.y);
TERN_(TC_GCODE_USE_GLOBAL_Z, workspace_offset.z -= ho.z);
#endif

switch (old_tool) {
Expand Down

0 comments on commit 83826b5

Please sign in to comment.