소스 검색

Merge pull request #598 from GDV0/Marlin_v1

FIx compilation error when enabling SERVO_ENDSTOPS (#591)
ErikZalm 11 년 전
부모
커밋
20076a8bd3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp 파일 보기

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

Loading…
취소
저장