Merge pull request #6887 from christianh17/PR-sanitycheck

enable DEACTIVATE_SERVOS_AFTER_MOVE with switching nozzle
This commit is contained in:
Scott Lahteine 2017-05-30 13:43:39 -05:00 committed by GitHub
commit 89b93058e3

View File

@ -409,10 +409,10 @@
#endif #endif
/** /**
* Servo deactivation depends on servo endstops * Servo deactivation depends on servo endstops or switching nozzle
*/ */
#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_Z_SERVO_ENDSTOP #if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_Z_SERVO_ENDSTOP && !defined(SWITCHING_NOZZLE_SERVO_NR)
#error "Z_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE." #error "Z_ENDSTOP_SERVO_NR or switching nozzle is required for DEACTIVATE_SERVOS_AFTER_MOVE."
#endif #endif
/** /**