1
0
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:
deadprogram 2017-01-25 08:49:30 +01:00
parent 465e98a603
commit 53ffbbd2bb

View File

@ -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