mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-29 13:49:14 +08:00
gpio: correct servo driver to pass along angle to adaptor to sort out implementation
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
465e98a603
commit
53ffbbd2bb
@ -69,7 +69,7 @@ func (s *ServoDriver) Move(angle uint8) (err error) {
|
|||||||
return ErrServoOutOfRange
|
return ErrServoOutOfRange
|
||||||
}
|
}
|
||||||
s.CurrentAngle = angle
|
s.CurrentAngle = angle
|
||||||
return s.connection.ServoWrite(s.Pin(), s.angleToSpan(angle))
|
return s.connection.ServoWrite(s.Pin(), angle)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Min sets the servo to it's minimum position
|
// Min sets the servo to it's minimum position
|
||||||
|
Loading…
x
Reference in New Issue
Block a user