Skip to content

Commit c72fbed

Browse files
authored
Merge pull request #86 from per1234/fix-attach-comment
Correct erroneous comment re: `Servo::attach` return
2 parents f361766 + 12d0baa commit c72fbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Servo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Servo
105105
{
106106
public:
107107
Servo();
108-
uint8_t attach(int pin); // attach the given pin to the next free channel, sets pinMode, returns channel number or 0 if failure
108+
uint8_t attach(int pin); // attach the given pin to the next free channel, sets pinMode, returns channel number or INVALID_SERVO if failure
109109
uint8_t attach(int pin, int min, int max); // as above but also sets min and max values for writes.
110110
void detach();
111111
void write(int value); // if value is < 200 its treated as an angle, otherwise as pulse width in microseconds

0 commit comments

Comments
 (0)