FIx compilation error when enabling SERVO_ENDSTOPS (#591)
This commit is contained in:
parent
59e36f1d27
commit
f17506c504
1 changed files with 2 additions and 2 deletions
|
@ -772,7 +772,7 @@ static void homeaxis(int axis) {
|
||||||
|
|
||||||
// Engage Servo endstop if enabled
|
// Engage Servo endstop if enabled
|
||||||
#ifdef SERVO_ENDSTOPS
|
#ifdef SERVO_ENDSTOPS
|
||||||
if (SERVO_ENDSTOPS[axis] > -1) {
|
if (servo_endstops[axis] > -1) {
|
||||||
servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);
|
servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -814,7 +814,7 @@ static void homeaxis(int axis) {
|
||||||
|
|
||||||
// Retract Servo endstop if enabled
|
// Retract Servo endstop if enabled
|
||||||
#ifdef SERVO_ENDSTOPS
|
#ifdef SERVO_ENDSTOPS
|
||||||
if (SERVO_ENDSTOPS[axis] > -1) {
|
if (servo_endstops[axis] > -1) {
|
||||||
servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]);
|
servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue