|
@@ -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
|