ソースを参照

Followup to position refactor

Scott Lahteine 5年前
コミット
e6055dce76
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      Marlin/src/module/tool_change.cpp

+ 1
- 1
Marlin/src/module/tool_change.cpp ファイルの表示

@@ -929,7 +929,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
929 929
       #elif ENABLED(SWITCHING_NOZZLE) && !SWITCHING_NOZZLE_TWO_SERVOS   // Switching Nozzle (single servo)
930 930
         // Raise by a configured distance to avoid workpiece, except with
931 931
         // SWITCHING_NOZZLE_TWO_SERVOS, as both nozzles will lift instead.
932
-        current_position.z += _MAX(-zdiff, 0.0) + toolchange_settings.z_raise;
932
+        current_position.z += _MAX(-diff.z, 0.0) + toolchange_settings.z_raise;
933 933
         #if HAS_SOFTWARE_ENDSTOPS
934 934
           NOMORE(current_position.z, soft_endstop.max.z);
935 935
         #endif

読み込み中…
キャンセル
保存