Allow Y to home before X with option in Configuration_adv.h.

This addresses comments in #1956 and #1079. In particular, this is useful
when both endstops are stationary on a CoreXY system, and the Y axis needs
to be homed before the X so the flags are aligned.
This commit is contained in:
Steve Kelly
2015-04-22 16:34:55 -04:00
parent a4ca87ba99
commit 98ca46006c
12 changed files with 42 additions and 2 deletions

View File

@ -1924,6 +1924,11 @@ inline void gcode_G28() {
#endif // QUICK_HOME
#ifdef HOME_Y_BEFORE_X
// Home Y
if (home_all_axis || homeY) HOMEAXIS(Y);
#endif
// Home X
if (home_all_axis || homeX) {
#ifdef DUAL_X_CARRIAGE
@ -1943,8 +1948,10 @@ inline void gcode_G28() {
#endif
}
// Home Y
if (home_all_axis || homeY) HOMEAXIS(Y);
#ifndef HOME_Y_BEFORE_X
// Home Y
if (home_all_axis || homeY) HOMEAXIS(Y);
#endif
// Set the X position, if included
if (code_seen(axis_codes[X_AXIS]) && code_has_value())