Browse Source

Followup to position refactor

pull/1/head
Scott Lahteine 5 years ago
parent
commit
e6055dce76
  1. 2
      Marlin/src/module/tool_change.cpp

2
Marlin/src/module/tool_change.cpp

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

Loading…
Cancel
Save