Move braces in homeaxis to prevent a hanging else (PR#2451)

This commit is contained in:
Scott Lahteine 2015-07-15 18:44:52 -07:00 committed by Richard Wackerbarth
parent 552a327df8
commit 81d42406b7

View file

@ -1764,13 +1764,13 @@ static void homeaxis(AxisEnum axis) {
#endif #endif
#ifdef SERVO_ENDSTOPS {
{ #ifdef SERVO_ENDSTOPS
// Retract Servo endstop if enabled // Retract Servo endstop if enabled
if (servo_endstops[axis] > -1) if (servo_endstops[axis] > -1)
servo[servo_endstops[axis]].move(0, servo_endstop_angles[axis * 2 + 1]); servo[servo_endstops[axis]].move(0, servo_endstop_angles[axis * 2 + 1]);
} #endif
#endif }
} }
} }