Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#598 from GDV0/Marlin_v1
Browse files Browse the repository at this point in the history
FIx compilation error when enabling SERVO_ENDSTOPS (MarlinFirmware#591)
  • Loading branch information
ErikZalm committed Sep 14, 2013
2 parents 3626b5a + f17506c commit 20076a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ static void homeaxis(int axis) {

// Engage Servo endstop if enabled
#ifdef SERVO_ENDSTOPS
if (SERVO_ENDSTOPS[axis] > -1) {
if (servo_endstops[axis] > -1) {
servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);
}
#endif
Expand Down Expand Up @@ -814,7 +814,7 @@ static void homeaxis(int axis) {

// Retract Servo endstop if enabled
#ifdef SERVO_ENDSTOPS
if (SERVO_ENDSTOPS[axis] > -1) {
if (servo_endstops[axis] > -1) {
servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]);
}
#endif
Expand Down

0 comments on commit 20076a8

Please sign in to comment.