Fix a potential hanging "else" bug
This commit is contained in:
parent
b83e3f0905
commit
2f3a410cb0
1 changed files with 1 additions and 2 deletions
|
@ -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]);
|
||||
|
|
Reference in a new issue