diff options
author | jet tsang zeon-git <zeon-git@jettsang.com> | 2020-08-11 14:17:51 +0800 |
---|---|---|
committer | jet tsang zeon-git <zeon-git@jettsang.com> | 2020-08-11 14:17:51 +0800 |
commit | 9864f3621afd5b08c68de8f2176c780051426b53 (patch) | |
tree | 1c180de73ce81128fb1fdd47121bc31a201c8634 /servo | |
parent | Add lobotctl for debug instruction bytes (diff) | |
download | lobot-9864f3621afd5b08c68de8f2176c780051426b53.tar.gz lobot-9864f3621afd5b08c68de8f2176c780051426b53.tar.bz2 lobot-9864f3621afd5b08c68de8f2176c780051426b53.zip |
sendInstruction not need values
Signed-off-by: jet tsang zeon-git <zeon-git@jettsang.com>
Diffstat (limited to 'servo')
-rw-r--r-- | servo/servo.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/servo/servo.go b/servo/servo.go index e3f608c..0d10b27 100644 --- a/servo/servo.go +++ b/servo/servo.go @@ -63,8 +63,6 @@ func (s *Servo) sendInstruction(i InstName, values []uint16) error { utils.Low(values[1]), utils.High(values[1]), } - default: - return fmt.Errorf("invalid instruction length: %d", r.Length) } return s.Protocol.WriteData(s.ID, r.InstByte, params) |