Apply remaining ENABLED/DISABLED conditionals

This commit is contained in:
Scott Lahteine
2015-08-03 12:30:37 -07:00
committed by Richard Wackerbarth
parent 4a72d2ba9c
commit 46453905d6
29 changed files with 61 additions and 61 deletions

View File

@ -307,7 +307,7 @@ bool Servo::attached() { return servo_info[this->servoIndex].Pin.isActive; }
void Servo::move(int value) {
if (this->attach(0) >= 0) {
this->write(value);
#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE)
delay(SERVO_DEACTIVATION_DELAY);
this->detach();
#endif