Skip to content

Commit 8ef9a63

Browse files
authored
Update Servo-Motor-Module.h
Signed-off-by: Adrian <[email protected]>
1 parent 9a41f43 commit 8ef9a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servo-Motor-Module.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ void Servo2::move(int angle) {
1313
servo.write(angle);
1414
}
1515

16-
void Servo2::attach() {
17-
servo.attach(this.servo);
16+
void Servo2::attach(int pin) {
17+
servo.attach(pin);
1818
}

0 commit comments

Comments
 (0)