🎨 Misc. 6-axis cleanup
This commit is contained in:
parent
34f9c28fd1
commit
cea45d49bc
|
@ -45,7 +45,7 @@
|
|||
*/
|
||||
#define __DECL_DATA_IF_INCLUDED(CLASS) struct CLASS ## Data CLASS ;
|
||||
#define _DECL_DATA_IF_INCLUDED(CLASS) __DECL_DATA_IF_INCLUDED(CLASS)
|
||||
#define DECL_DATA_IF_INCLUDED(HEADER) TERN(HEADER, _DECL_DATA_IF_INCLUDED(HEADER ## _CLASS), )
|
||||
#define DECL_DATA_IF_INCLUDED(HEADER) TERN_(HEADER, _DECL_DATA_IF_INCLUDED(HEADER ## _CLASS))
|
||||
|
||||
union screen_data_t {
|
||||
DECL_DATA_IF_INCLUDED(FTDI_INTERFACE_SETTINGS_SCREEN)
|
||||
|
|
|
@ -1052,6 +1052,13 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
|||
if (ok) {
|
||||
IF_DISABLED(TOOLCHANGE_PARK_Y_ONLY, current_position.x = toolchange_settings.change_point.x);
|
||||
IF_DISABLED(TOOLCHANGE_PARK_X_ONLY, current_position.y = toolchange_settings.change_point.y);
|
||||
#if NONE(TOOLCHANGE_PARK_X_ONLY, TOOLCHANGE_PARK_Y_ONLY)
|
||||
SECONDARY_AXIS_CODE(
|
||||
current_position.i = toolchange_settings.change_point.i,
|
||||
current_position.j = toolchange_settings.change_point.j,
|
||||
current_position.k = toolchange_settings.change_point.k
|
||||
);
|
||||
#endif
|
||||
planner.buffer_line(current_position, MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE), active_extruder);
|
||||
planner.synchronize();
|
||||
}
|
||||
|
@ -1227,6 +1234,13 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
|||
if (can_move_away && toolchange_settings.enable_park) {
|
||||
IF_DISABLED(TOOLCHANGE_PARK_Y_ONLY, current_position.x = toolchange_settings.change_point.x);
|
||||
IF_DISABLED(TOOLCHANGE_PARK_X_ONLY, current_position.y = toolchange_settings.change_point.y);
|
||||
#if NONE(TOOLCHANGE_PARK_X_ONLY, TOOLCHANGE_PARK_Y_ONLY)
|
||||
SECONDARY_AXIS_CODE(
|
||||
current_position.i = toolchange_settings.change_point.i,
|
||||
current_position.j = toolchange_settings.change_point.j,
|
||||
current_position.k = toolchange_settings.change_point.k
|
||||
);
|
||||
#endif
|
||||
planner.buffer_line(current_position, MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE), old_tool);
|
||||
planner.synchronize();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue