From d15d869267c9190d2210fef6a7a6ee8b947bf52b Mon Sep 17 00:00:00 2001 From: AnHardt Date: Sat, 18 Jul 2015 16:05:43 +0200 Subject: [PATCH] Rename axis_is_at_home() to set_axis_is_at_home() (PR#2464) to make clear - it's not a question but an order. --- Marlin/Marlin_main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index a01b74cd02..bf9e2dafec 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1023,7 +1023,7 @@ XYZ_CONSTS_FROM_CONFIG(signed char, home_dir, HOME_DIR); #endif //DUAL_X_CARRIAGE -static void axis_is_at_home(AxisEnum axis) { +static void set_axis_is_at_home(AxisEnum axis) { #ifdef DUAL_X_CARRIAGE if (axis == X_AXIS) { @@ -1739,7 +1739,7 @@ static void homeaxis(AxisEnum axis) { #endif // Set the axis position to its home position (plus home offsets) - axis_is_at_home(axis); + set_axis_is_at_home(axis); sync_plan_position(); destination[axis] = current_position[axis]; @@ -2197,8 +2197,8 @@ inline void gcode_G28() { line_to_destination(); st_synchronize(); - axis_is_at_home(X_AXIS); - axis_is_at_home(Y_AXIS); + set_axis_is_at_home(X_AXIS); + set_axis_is_at_home(Y_AXIS); sync_plan_position(); destination[X_AXIS] = current_position[X_AXIS]; @@ -5246,7 +5246,7 @@ inline void gcode_T(uint8_t tmp_extruder) { active_extruder = tmp_extruder; // This function resets the max/min values - the current position may be overwritten below. - axis_is_at_home(X_AXIS); + set_axis_is_at_home(X_AXIS); if (dual_x_carriage_mode == DXC_FULL_CONTROL_MODE) { current_position[X_AXIS] = inactive_extruder_x_pos;