浏览代码

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

正在加载...
取消
保存