Skip to content

Commit

Permalink
🩹 Skip post-G28 XY move for untrusted X or Y (MarlinFirmware#26644)
Browse files Browse the repository at this point in the history
Followup to MarlinFirmware#26469

Co-authored-by: Scott Lahteine <[email protected]>
  • Loading branch information
mikemerryguy and thinkyhead authored Jan 8, 2024
1 parent f4eafed commit 38f483c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/calibrate/G28.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 38f483c

Please sign in to comment.