Allow Z_AFTER_PROBING to be 0
This commit is contained in:
@ -965,7 +965,7 @@ void GcodeSuite::G29() {
|
||||
if (planner.leveling_active)
|
||||
SYNC_PLAN_POSITION_KINEMATIC();
|
||||
|
||||
#if HAS_BED_PROBE && Z_AFTER_PROBING
|
||||
#if HAS_BED_PROBE && defined(Z_AFTER_PROBING)
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
|
||||
|
@ -312,7 +312,7 @@ void GcodeSuite::G28(const bool always_home_all) {
|
||||
HOMEAXIS(Z);
|
||||
#endif
|
||||
|
||||
#if HOMING_Z_WITH_PROBE && Z_AFTER_PROBING
|
||||
#if HOMING_Z_WITH_PROBE && defined(Z_AFTER_PROBING)
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
|
||||
|
@ -62,7 +62,7 @@ void GcodeSuite::G30() {
|
||||
|
||||
clean_up_after_endstop_or_probe_move();
|
||||
|
||||
#if Z_AFTER_PROBING
|
||||
#ifdef Z_AFTER_PROBING
|
||||
if (raise_after == PROBE_PT_STOW) move_z_after_probing();
|
||||
#endif
|
||||
|
||||
|
@ -41,7 +41,7 @@ void GcodeSuite::M401() {
|
||||
*/
|
||||
void GcodeSuite::M402() {
|
||||
STOW_PROBE();
|
||||
#if Z_AFTER_PROBING
|
||||
#ifdef Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
report_current_position();
|
||||
|
Reference in New Issue
Block a user