Browse Source

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

Jason Smith 5 years ago
parent
commit
46763efb75
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/tool_change.cpp

+ 1
- 1
Marlin/src/module/tool_change.cpp View File

906
       #endif
906
       #endif
907
 
907
 
908
       #if HAS_HOTEND_OFFSET
908
       #if HAS_HOTEND_OFFSET
909
-        xyz_pos_t diff = hotend_offset[new_tool];
909
+        xyz_pos_t diff = hotend_offset[new_tool] - hotend_offset[old_tool];
910
         #if ENABLED(DUAL_X_CARRIAGE)
910
         #if ENABLED(DUAL_X_CARRIAGE)
911
           diff.x = 0;
911
           diff.x = 0;
912
         #endif
912
         #endif

Loading…
Cancel
Save