Kaynağa Gözat

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

Jason Smith 5 yıl önce
ebeveyn
işleme
46763efb75
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      Marlin/src/module/tool_change.cpp

+ 1
- 1
Marlin/src/module/tool_change.cpp Dosyayı Görüntüle

@@ -906,7 +906,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
906 906
       #endif
907 907
 
908 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 910
         #if ENABLED(DUAL_X_CARRIAGE)
911 911
           diff.x = 0;
912 912
         #endif

Loading…
İptal
Kaydet