Fix tool-change move with hotend offset (#15491)
This commit is contained in:
parent
6a865a6146
commit
46763efb75
|
@ -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…
Reference in a new issue