From 2f3a410cb090198491f10af7dc9b30814baa11ff Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 17 May 2015 01:50:30 -0700 Subject: [PATCH] Fix a potential hanging "else" bug --- Marlin/Marlin_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 2efac9fd1c..26bed52941 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -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]);