Commit 12d0baa
authored
Correct erroneous comment re:
The comment claimed that 0 was returned by `Servo::attach` on failure. This is incorrect. The return value is the channel number, which is 0 for the `Servo` object that is instantiated first.
Instead, `INVALID_SERVO` (defined as 255) is returned on failure.Servo::attach return1 parent f361766 commit 12d0baa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments