Skip to content

Commit 75eb528

Browse files
committed
implemented the attached() method
1 parent 618b8cd commit 75eb528

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Servo_Hardware_PWM.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,8 @@ int Servo::readMicroseconds() {
458458

459459
return this->pulseWidth;
460460
}
461+
462+
bool Servo::attached() {
463+
return pinActive[this->servoIndex] == BOOL_TRUE;
464+
}
461465
#endif

0 commit comments

Comments
 (0)