From 38f483c4a6a0b6c814e5ee88747f58eed17fa61e Mon Sep 17 00:00:00 2001 From: mikemerryguy <57319047+mikemerryguy@users.noreply.github.com> Date: Sun, 7 Jan 2024 23:14:24 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Skip=20post-G28=20XY=20move=20fo?= =?UTF-8?q?r=20untrusted=20X=20or=20Y=20(#26644)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to #26469 Co-authored-by: Scott Lahteine --- Marlin/src/gcode/calibrate/G28.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index 98d0a401481c..55698c942bd4 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -639,8 +639,8 @@ void GcodeSuite::G28() { #endif #ifdef XY_AFTER_HOMING - constexpr xy_pos_t xy_after XY_AFTER_HOMING; - do_blocking_move_to(xy_after); + if (!axes_should_home(_BV(X_AXIS) | _BV(Y_AXIS))) + do_blocking_move_to(xy_pos_t(XY_AFTER_HOMING)); #endif restore_feedrate_and_scaling();