🎨 Use pos.set method

This commit is contained in:
Scott Lahteine 2022-05-28 15:24:09 -05:00
parent 2b4a89eafe
commit a59766195c

View file

@ -936,12 +936,10 @@ namespace ExtUI {
if (x_target != current_position.x || y_target != current_position.y) { if (x_target != current_position.x || y_target != current_position.y) {
// If moving across bed, raise nozzle to safe height over bed // If moving across bed, raise nozzle to safe height over bed
feedrate_mm_s = Z_PROBE_FEEDRATE_FAST; feedrate_mm_s = Z_PROBE_FEEDRATE_FAST;
destination = current_position; destination.set(current_position.x, current_position.y, Z_CLEARANCE_BETWEEN_PROBES);
destination.z = Z_CLEARANCE_BETWEEN_PROBES;
prepare_line_to_destination(); prepare_line_to_destination();
feedrate_mm_s = XY_PROBE_FEEDRATE; feedrate_mm_s = XY_PROBE_FEEDRATE;
destination.x = x_target; destination.set(x_target, y_target);
destination.y = y_target;
prepare_line_to_destination(); prepare_line_to_destination();
} }
feedrate_mm_s = Z_PROBE_FEEDRATE_FAST; feedrate_mm_s = Z_PROBE_FEEDRATE_FAST;