summaryrefslogtreecommitdiff
path: root/servo
diff options
context:
space:
mode:
Diffstat (limited to 'servo')
-rw-r--r--servo/servo.go2
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)