Add custom types for position (#15204)
This commit is contained in:
@@ -58,7 +58,7 @@ void GcodeSuite::M125() {
|
||||
#endif
|
||||
);
|
||||
|
||||
point_t park_point = NOZZLE_PARK_POINT;
|
||||
xyz_pos_t park_point = NOZZLE_PARK_POINT;
|
||||
|
||||
// Move XY axes to filament change position or given position
|
||||
if (parser.seenval('X')) park_point.x = RAW_X_POSITION(parser.linearval('X'));
|
||||
@@ -68,8 +68,7 @@ void GcodeSuite::M125() {
|
||||
if (parser.seenval('Z')) park_point.z = parser.linearval('Z');
|
||||
|
||||
#if HAS_HOTEND_OFFSET && NONE(DUAL_X_CARRIAGE, DELTA)
|
||||
park_point.x += hotend_offset[X_AXIS][active_extruder];
|
||||
park_point.y += hotend_offset[Y_AXIS][active_extruder];
|
||||
park_point += hotend_offset[active_extruder];
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
Reference in New Issue
Block a user