Skip to content

Commit

Permalink
Merge pull request #4077 from thinkyhead/rc_delete_old_macros
Browse files Browse the repository at this point in the history
Delete some obsolete Z servo macros
  • Loading branch information
thinkyhead authored Jun 18, 2016
2 parents 599154f + defcacc commit f33bd0b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2279,18 +2279,12 @@ static void homeaxis(AxisEnum axis) {
#if ENABLED(Z_PROBE_SLED)
#define _Z_DEPLOY (dock_sled(false))
#define _Z_STOW (dock_sled(true))
#define _Z_SERVO_TEST (axis != Z_AXIS) // already deployed Z
#define _Z_SERVO_SUBTEST false // Z will never be invoked
#elif SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
#define _Z_DEPLOY (deploy_z_probe())
#define _Z_STOW (stow_z_probe())
#define _Z_SERVO_TEST (axis != Z_AXIS) // already deployed Z
#define _Z_SERVO_SUBTEST false // Z will never be invoked
#elif HAS_Z_SERVO_ENDSTOP
#define _Z_DEPLOY do{ raise_z_for_servo(Z_RAISE_BEFORE_PROBING); DEPLOY_Z_SERVO(); endstops.z_probe_enabled = true; }while(0)
#define _Z_STOW do{ raise_z_for_servo(Z_RAISE_AFTER_PROBING); STOW_Z_SERVO(); endstops.z_probe_enabled = false; }while(0)
#define _Z_SERVO_TEST true // Z not deployed yet
#define _Z_SERVO_SUBTEST (axis == Z_AXIS) // Z is a probe
#endif

// Homing Z towards the bed? Deploy the Z probe or endstop.
Expand Down

0 comments on commit f33bd0b

Please sign in to comment.