Tweak use of move_z_after_probing
This commit is contained in:
@ -949,7 +949,7 @@ void GcodeSuite::G29() {
|
||||
if (planner.leveling_active)
|
||||
SYNC_PLAN_POSITION_KINEMATIC();
|
||||
|
||||
#if HAS_BED_PROBE
|
||||
#if HAS_BED_PROBE && Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
|
||||
|
@ -310,7 +310,7 @@ void GcodeSuite::G28(const bool always_home_all) {
|
||||
HOMEAXIS(Z);
|
||||
#endif
|
||||
} // home_all || homeZ
|
||||
#if HOMING_Z_WITH_PROBE
|
||||
#if HOMING_Z_WITH_PROBE && Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
#endif // Z_HOME_DIR < 0
|
||||
|
@ -62,7 +62,9 @@ void GcodeSuite::G30() {
|
||||
|
||||
clean_up_after_endstop_or_probe_move();
|
||||
|
||||
if (raise_after == PROBE_PT_STOW) move_z_after_probing();
|
||||
#if Z_AFTER_PROBING
|
||||
if (raise_after == PROBE_PT_STOW) move_z_after_probing();
|
||||
#endif
|
||||
|
||||
report_current_position();
|
||||
}
|
||||
|
@ -41,7 +41,9 @@ void GcodeSuite::M401() {
|
||||
*/
|
||||
void GcodeSuite::M402() {
|
||||
STOW_PROBE();
|
||||
move_z_after_probing();
|
||||
#if Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
report_current_position();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user