Apply remaining ENABLED/DISABLED conditionals
This commit is contained in:
parent
4a72d2ba9c
commit
46453905d6
29 changed files with 61 additions and 61 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue