Apply remaining ENABLED/DISABLED conditionals
This commit is contained in:
committed by
Richard Wackerbarth
parent
4a72d2ba9c
commit
46453905d6
@ -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
|
||||
|
Reference in New Issue
Block a user