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

This commit is contained in:
Jason Smith 2019-10-09 17:48:00 -07:00 committed by Scott Lahteine
parent 6a865a6146
commit 46763efb75

View File

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