1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-28 06:21:31 +00:00

const argument in do_homing_move

This commit is contained in:
Scott Lahteine 2016-09-21 17:37:36 -05:00
parent cc639d7d9c
commit 2846531f0b

View File

@ -2185,8 +2185,7 @@ static void clean_up_after_endstop_or_probe_move() {
/**
* Home an individual linear axis
*/
static void do_homing_move(AxisEnum axis, float where, float fr_mm_s=0.0) {
static void do_homing_move(const AxisEnum axis, float distance, float fr_mm_s=0.0) {
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
bool deploy_bltouch = (axis == Z_AXIS && where < 0);
@ -2195,7 +2194,7 @@ static void do_homing_move(AxisEnum axis, float where, float fr_mm_s=0.0) {
current_position[axis] = 0;
sync_plan_position();
current_position[axis] = where;
current_position[axis] = distance;
planner.buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], fr_mm_s ? fr_mm_s : homing_feedrate_mm_s[axis], active_extruder);
stepper.synchronize();