enable DEACTIVATE_SERVOS_AFTER_MOVE with switching nozzle

When using switching nozzle it should be possible to disable the servo after move. Do it only if you do not need the servo power to keep the position.
This commit is contained in:
christianh17 2017-05-28 15:33:28 +02:00
parent ac959b12ee
commit f379a326cc

View File

@ -407,10 +407,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
/** /**