Browse Source

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

Scott Lahteine 9 years ago
parent
commit
81d42406b7
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp View File

1764
 
1764
 
1765
     #endif
1765
     #endif
1766
 
1766
 
1767
-    #ifdef SERVO_ENDSTOPS
1768
-      {
1767
+    {
1768
+      #ifdef SERVO_ENDSTOPS
1769
         // Retract Servo endstop if enabled
1769
         // Retract Servo endstop if enabled
1770
         if (servo_endstops[axis] > -1)
1770
         if (servo_endstops[axis] > -1)
1771
           servo[servo_endstops[axis]].move(0, servo_endstop_angles[axis * 2 + 1]);
1771
           servo[servo_endstops[axis]].move(0, servo_endstop_angles[axis * 2 + 1]);
1772
-      }
1773
-    #endif
1772
+      #endif
1773
+    }
1774
 
1774
 
1775
   }
1775
   }
1776
 }
1776
 }

Loading…
Cancel
Save