Strip excess G28 debug logging

This commit is contained in:
Scott Lahteine 2018-02-18 01:09:56 -06:00
parent 28e7562e7a
commit 65d69e9507

View File

@ -3965,12 +3965,7 @@ inline void gcode_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
@ -4001,12 +3996,7 @@ inline void gcode_G28(const bool always_home_all) {
#if ENABLED(CODEPENDENT_XY_HOMING)
|| homeX
#endif
) {
HOMEAXIS(Y);
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeY", current_position);
#endif
}
) HOMEAXIS(Y);
#endif
@ -4040,20 +4030,11 @@ inline void gcode_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)
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
@ -4064,9 +4045,6 @@ inline void gcode_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