Apply TERN to compact code (#17619)

This commit is contained in:
Scott Lahteine authored and GitHub committed 2020-04-22 16:35:03 -05:00
1 parent 88bdd26c99
commit 6d90d1e1f5
162 files changed
+1493 -3530

No files matched your search

+1 -3
View File
@@ -150,9 +150,7 @@ void Servo::move(const int value) {
if (attach(0) >= 0) {
write(value);
safe_delay(servo_delay[servoIndex]);
#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE)
detach();
#endif
TERN_(DEACTIVATE_SERVOS_AFTER_MOVE, detach());
}
}