Browse Source

Fix tool-change move with hotend offset (#15491)

pull/1/head
Jason Smith 5 years ago
committed by Scott Lahteine
parent
commit
46763efb75
  1. 2
      Marlin/src/module/tool_change.cpp

2
Marlin/src/module/tool_change.cpp

@ -906,7 +906,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
#endif #endif
#if HAS_HOTEND_OFFSET #if HAS_HOTEND_OFFSET
xyz_pos_t diff = hotend_offset[new_tool]; xyz_pos_t diff = hotend_offset[new_tool] - hotend_offset[old_tool];
#if ENABLED(DUAL_X_CARRIAGE) #if ENABLED(DUAL_X_CARRIAGE)
diff.x = 0; diff.x = 0;
#endif #endif

Loading…
Cancel
Save