Browse Source

Merge pull request #598 from GDV0/Marlin_v1

FIx compilation error when enabling SERVO_ENDSTOPS (#591)
ErikZalm 11 years ago
parent
commit
20076a8bd3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

772
 
772
 
773
     // Engage Servo endstop if enabled
773
     // Engage Servo endstop if enabled
774
     #ifdef SERVO_ENDSTOPS
774
     #ifdef SERVO_ENDSTOPS
775
-      if (SERVO_ENDSTOPS[axis] > -1) {
775
+      if (servo_endstops[axis] > -1) {
776
         servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);
776
         servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);
777
       }
777
       }
778
     #endif
778
     #endif
814
 
814
 
815
     // Retract Servo endstop if enabled
815
     // Retract Servo endstop if enabled
816
     #ifdef SERVO_ENDSTOPS
816
     #ifdef SERVO_ENDSTOPS
817
-      if (SERVO_ENDSTOPS[axis] > -1) {
817
+      if (servo_endstops[axis] > -1) {
818
         servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]);
818
         servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]);
819
       }
819
       }
820
     #endif
820
     #endif

Loading…
Cancel
Save