Browse Source

🎨 Use pos.set method

FB4S_WIFI
Scott Lahteine 3 years ago
parent
commit
deb1ba73bb
  1. 6
      Marlin/src/lcd/extui/ui_api.cpp

6
Marlin/src/lcd/extui/ui_api.cpp

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

Loading…
Cancel
Save