Fix a potential hanging "else" bug

This commit is contained in:
Scott Lahteine 2015-05-17 01:50:30 -07:00
parent b83e3f0905
commit 2f3a410cb0

View File

@ -1596,12 +1596,11 @@ static void homeaxis(AxisEnum axis) {
if (axis == Z_AXIS) {
if (axis_home_dir < 0) deploy_z_probe();
}
else
#endif
#ifdef SERVO_ENDSTOPS
{
if (axis != Z_AXIS) {
// Engage Servo endstop if enabled
if (servo_endstops[axis] > -1)
servo[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);