🎨 Misc code and spacing cleanup
This commit is contained in:
@ -918,9 +918,7 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
||||
if (ok) {
|
||||
// Do a small lift to avoid the workpiece in the move back (below)
|
||||
current_position.z += toolchange_settings.z_raise;
|
||||
#if HAS_SOFTWARE_ENDSTOPS
|
||||
NOMORE(current_position.z, soft_endstop.max.z);
|
||||
#endif
|
||||
TERN_(HAS_SOFTWARE_ENDSTOPS, NOMORE(current_position.z, soft_endstop.max.z));
|
||||
fast_line_to_current(Z_AXIS);
|
||||
planner.synchronize();
|
||||
}
|
||||
@ -1068,9 +1066,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
||||
if (can_move_away && TERN1(TOOLCHANGE_PARK, toolchange_settings.enable_park)) {
|
||||
// Do a small lift to avoid the workpiece in the move back (below)
|
||||
current_position.z += toolchange_settings.z_raise;
|
||||
#if HAS_SOFTWARE_ENDSTOPS
|
||||
NOMORE(current_position.z, soft_endstop.max.z);
|
||||
#endif
|
||||
TERN_(HAS_SOFTWARE_ENDSTOPS, NOMORE(current_position.z, soft_endstop.max.z));
|
||||
fast_line_to_current(Z_AXIS);
|
||||
planner.synchronize();
|
||||
}
|
||||
@ -1117,9 +1113,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
||||
if (can_move_away && TERN1(TOOLCHANGE_PARK, toolchange_settings.enable_park)) {
|
||||
// Do a small lift to avoid the workpiece in the move back (below)
|
||||
current_position.z += toolchange_settings.z_raise;
|
||||
#if HAS_SOFTWARE_ENDSTOPS
|
||||
NOMORE(current_position.z, soft_endstop.max.z);
|
||||
#endif
|
||||
TERN_(HAS_SOFTWARE_ENDSTOPS, NOMORE(current_position.z, soft_endstop.max.z));
|
||||
fast_line_to_current(Z_AXIS);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user