Skip to content

Commit 38f483c

Browse files
🩹 Skip post-G28 XY move for untrusted X or Y (MarlinFirmware#26644)
Followup to MarlinFirmware#26469 Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
1 parent f4eafed commit 38f483c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/gcode/calibrate/G28.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ void GcodeSuite::G28() {
639639
#endif
640640

641641
#ifdef XY_AFTER_HOMING
642-
constexpr xy_pos_t xy_after XY_AFTER_HOMING;
643-
do_blocking_move_to(xy_after);
642+
if (!axes_should_home(_BV(X_AXIS) | _BV(Y_AXIS)))
643+
do_blocking_move_to(xy_pos_t(XY_AFTER_HOMING));
644644
#endif
645645

646646
restore_feedrate_and_scaling();

0 commit comments

Comments
 (0)