From f379a326cc3cf6a5a11e9bf5e70a493ecb5a68d4 Mon Sep 17 00:00:00 2001 From: christianh17 Date: Sun, 28 May 2017 15:33:28 +0200 Subject: [PATCH] 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. --- Marlin/SanityCheck.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index f6c7245a2d..bb3930c0bf 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -407,10 +407,10 @@ #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 - #error "Z_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE." +#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_Z_SERVO_ENDSTOP && !defined(SWITCHING_NOZZLE_SERVO_NR) + #error "Z_ENDSTOP_SERVO_NR or switching nozzle is required for DEACTIVATE_SERVOS_AFTER_MOVE." #endif /**