device/raspistill: remove impossible condition

This commit is contained in:
Dan Kortschak 2021-07-23 12:57:22 +09:30 committed by Russell Stanley
parent 986c010d3b
commit e9db8911c6
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func (r *Raspistill) Name() string { return "Raspistill" }
func (r *Raspistill) Set(c config.Config) error { func (r *Raspistill) Set(c config.Config) error {
var errs device.MultiError var errs device.MultiError
if c.Rotation > 359 || c.Rotation < 0 { if c.Rotation > 359 {
c.Rotation = defaultRotation c.Rotation = defaultRotation
errs = append(errs, errBadRotation) errs = append(errs, errBadRotation)
} }