mirror of https://bitbucket.org/ausocean/av.git
device/raspistill: remove impossible condition
This commit is contained in:
parent
986c010d3b
commit
e9db8911c6
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue