Add HAS_SERVO_ENDSTOPS to simplify conditonals

This commit is contained in:
Scott Lahteine
2015-07-30 20:42:34 -07:00
committed by Richard Wackerbarth
parent 47ae96ce15
commit ed4a6371ad
3 changed files with 16 additions and 15 deletions

View File

@@ -98,7 +98,7 @@
/**
* Servo deactivation depends on servo endstops
*/
#if defined(DEACTIVATE_SERVOS_AFTER_MOVE) && !defined(SERVO_ENDSTOPS)
#if defined(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_SERVO_ENDSTOPS
#error At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE.
#endif