🩹 Skip post-G28 XY move for untrusted X or Y (#26644)

Followup to #26469

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
mikemerryguy 2024-01-07 23:14:24 -05:00 committed by GitHub
parent f4eafed188
commit 38f483c4a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();