change to better (more clear) names (#8050)
set_destination_to_current() changed to set_destination_from_current() set_current_to_destination() changed to set_current_from_destination()
This commit is contained in:
@ -55,7 +55,7 @@ void GcodeSuite::G42() {
|
||||
#define _GET_MESH_Y(J) mbl.index_to_ypos[J]
|
||||
#endif
|
||||
|
||||
set_destination_to_current();
|
||||
set_destination_from_current();
|
||||
if (hasI) destination[X_AXIS] = LOGICAL_X_POSITION(_GET_MESH_X(ix));
|
||||
if (hasJ) destination[Y_AXIS] = LOGICAL_Y_POSITION(_GET_MESH_Y(iy));
|
||||
if (parser.boolval('P')) {
|
||||
|
@ -47,7 +47,7 @@ void mesh_probing_done() {
|
||||
set_bed_leveling_enabled(true);
|
||||
#if ENABLED(MESH_G28_REST_ORIGIN)
|
||||
current_position[Z_AXIS] = LOGICAL_Z_POSITION(Z_MIN_POS);
|
||||
set_destination_to_current();
|
||||
set_destination_from_current();
|
||||
line_to_destination(homing_feedrate(Z_AXIS));
|
||||
stepper.synchronize();
|
||||
#endif
|
||||
|
@ -194,7 +194,7 @@ void GcodeSuite::G28(const bool always_home_all) {
|
||||
homeZ = always_home_all || parser.seen('Z'),
|
||||
home_all = (!homeX && !homeY && !homeZ) || (homeX && homeY && homeZ);
|
||||
|
||||
set_destination_to_current();
|
||||
set_destination_from_current();
|
||||
|
||||
#if Z_HOME_DIR > 0 // If homing away from BED do Z first
|
||||
|
||||
|
@ -181,7 +181,7 @@ void plan_arc(
|
||||
// As far as the parser is concerned, the position is now == target. In reality the
|
||||
// motion control system might still be processing the action and the real tool position
|
||||
// in any intermediate location.
|
||||
set_current_to_destination();
|
||||
set_current_from_destination();
|
||||
} // plan_arc
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ void plan_cubic_move(const float offset[4]) {
|
||||
// As far as the parser is concerned, the position is now == destination. In reality the
|
||||
// motion control system might still be processing the action and the real tool position
|
||||
// in any intermediate location.
|
||||
set_current_to_destination();
|
||||
set_current_from_destination();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ static bool G38_run_probe() {
|
||||
|
||||
#if ENABLED(PROBE_DOUBLE_TOUCH)
|
||||
// Move away by the retract distance
|
||||
set_destination_to_current();
|
||||
set_destination_from_current();
|
||||
LOOP_XYZ(i) destination[i] += retract_mm[i];
|
||||
endstops.enable(false);
|
||||
prepare_move_to_destination();
|
||||
|
Reference in New Issue
Block a user