From e9db8911c61490102e2c4ec712e7dfe4d1d2af01 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Fri, 23 Jul 2021 12:57:22 +0930 Subject: [PATCH] device/raspistill: remove impossible condition --- device/raspistill/raspistill.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/raspistill/raspistill.go b/device/raspistill/raspistill.go index b5025601..877c41b1 100644 --- a/device/raspistill/raspistill.go +++ b/device/raspistill/raspistill.go @@ -104,7 +104,7 @@ func (r *Raspistill) Name() string { return "Raspistill" } func (r *Raspistill) Set(c config.Config) error { var errs device.MultiError - if c.Rotation > 359 || c.Rotation < 0 { + if c.Rotation > 359 { c.Rotation = defaultRotation errs = append(errs, errBadRotation) }