From bf7b28b45661a8f2407da7b5c7f527418f4de716 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Fri, 5 Apr 2019 18:04:46 -0600 Subject: [PATCH] Fix incorrect variable name (#13585) --- Marlin/src/gcode/calibrate/G28.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index 02c6e8a37d..684c2e216b 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -406,14 +406,13 @@ void GcodeSuite::G28(const bool always_home_all) { #ifdef HOMING_BACKOFF_MM endstops.enable(false); - constexpr float backoff[XYZ] = HOMING_BACKOFF_MM; + constexpr float endstop_backoff[XYZ] = HOMING_BACKOFF_MM; const float backoff_x = doX ? ABS(endstop_backoff[X_AXIS]) * (X_HOME_DIR) : 0, backoff_y = doY ? ABS(endstop_backoff[Y_AXIS]) * (Y_HOME_DIR) : 0, backoff_z = doZ ? ABS(endstop_backoff[Z_AXIS]) * (Z_HOME_DIR) : 0; if (backoff_z) do_blocking_move_to_z(current_position[Z_AXIS] - backoff_z); if (backoff_x || backoff_y) do_blocking_move_to_xy(current_position[X_AXIS] - backoff_x, current_position[Y_AXIS] - backoff_y); #endif - endstops.not_homing(); #if BOTH(DELTA, DELTA_HOME_TO_SAFE_ZONE)