Browse Source

Combine if block related to SERVO_ENDSTOPS

Scott Lahteine 9 years ago
parent
commit
3b2b2313ff
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      Marlin/Marlin_main.cpp

+ 3
- 5
Marlin/Marlin_main.cpp View File

1677
     #endif
1677
     #endif
1678
 
1678
 
1679
     #ifdef SERVO_ENDSTOPS
1679
     #ifdef SERVO_ENDSTOPS
1680
-      if (axis != Z_AXIS) {
1681
-        // Engage Servo endstop if enabled
1682
-        if (servo_endstops[axis] >= 0) 
1683
-          servo[servo_endstops[axis]].move(servo_endstop_angles[axis * 2]);
1684
-      }
1680
+      // Engage Servo endstop if enabled
1681
+      if (axis != Z_AXIS && servo_endstops[axis] >= 0)
1682
+        servo[servo_endstops[axis]].move(servo_endstop_angles[axis][0]);
1685
     #endif
1683
     #endif
1686
 
1684
 
1687
     // Set a flag for Z motor locking
1685
     // Set a flag for Z motor locking

Loading…
Cancel
Save