Followup to position refactor
This commit is contained in:
parent
b4d48fdc91
commit
e6055dce76
|
@ -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)
|
#elif ENABLED(SWITCHING_NOZZLE) && !SWITCHING_NOZZLE_TWO_SERVOS // Switching Nozzle (single servo)
|
||||||
// Raise by a configured distance to avoid workpiece, except with
|
// Raise by a configured distance to avoid workpiece, except with
|
||||||
// SWITCHING_NOZZLE_TWO_SERVOS, as both nozzles will lift instead.
|
// 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
|
#if HAS_SOFTWARE_ENDSTOPS
|
||||||
NOMORE(current_position.z, soft_endstop.max.z);
|
NOMORE(current_position.z, soft_endstop.max.z);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue