From 9864f3621afd5b08c68de8f2176c780051426b53 Mon Sep 17 00:00:00 2001 From: jet tsang zeon-git Date: Tue, 11 Aug 2020 14:17:51 +0800 Subject: sendInstruction not need values Signed-off-by: jet tsang zeon-git --- servo/servo.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'servo') 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) -- cgit v1.2.3