|
|
@ -198,12 +198,7 @@ void GcodeSuite::G28(const bool always_home_all) { |
|
|
|
|
|
|
|
#if Z_HOME_DIR > 0 // If homing away from BED do Z first
|
|
|
|
|
|
|
|
if (home_all || homeZ) { |
|
|
|
HOMEAXIS(Z); |
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
if (DEBUGGING(LEVELING)) DEBUG_POS("> HOMEAXIS(Z)", current_position); |
|
|
|
#endif |
|
|
|
} |
|
|
|
if (home_all || homeZ) HOMEAXIS(Z); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
@ -227,20 +222,23 @@ void GcodeSuite::G28(const bool always_home_all) { |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
// Home Y (before X)
|
|
|
|
#if ENABLED(HOME_Y_BEFORE_X) |
|
|
|
|
|
|
|
// Home Y
|
|
|
|
if (home_all || homeY) { |
|
|
|
HOMEAXIS(Y); |
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeY", current_position); |
|
|
|
if (home_all || homeY |
|
|
|
#if ENABLED(CODEPENDENT_XY_HOMING) |
|
|
|
|| homeX |
|
|
|
#endif |
|
|
|
} |
|
|
|
) HOMEAXIS(Y); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
// Home X
|
|
|
|
if (home_all || homeX) { |
|
|
|
if (home_all || homeX |
|
|
|
#if ENABLED(CODEPENDENT_XY_HOMING) && DISABLED(HOME_Y_BEFORE_X) |
|
|
|
|| homeY |
|
|
|
#endif |
|
|
|
) { |
|
|
|
|
|
|
|
#if ENABLED(DUAL_X_CARRIAGE) |
|
|
|
|
|
|
@ -265,20 +263,11 @@ void GcodeSuite::G28(const bool always_home_all) { |
|
|
|
HOMEAXIS(X); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeX", current_position); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
// Home Y (after X)
|
|
|
|
#if DISABLED(HOME_Y_BEFORE_X) |
|
|
|
// Home Y
|
|
|
|
if (home_all || homeY) { |
|
|
|
HOMEAXIS(Y); |
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeY", current_position); |
|
|
|
#endif |
|
|
|
} |
|
|
|
if (home_all || homeY) HOMEAXIS(Y); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Home Z last if homing towards the bed
|
|
|
@ -289,9 +278,6 @@ void GcodeSuite::G28(const bool always_home_all) { |
|
|
|
#else |
|
|
|
HOMEAXIS(Z); |
|
|
|
#endif |
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
|
if (DEBUGGING(LEVELING)) DEBUG_POS("> (home_all || homeZ) > final", current_position); |
|
|
|
#endif |
|
|
|
} // home_all || homeZ
|
|
|
|
#endif // Z_HOME_DIR < 0
|
|
|
|
|
|
|
|