mirror of https://bitbucket.org/ausocean/av.git
fixing some syntax errors
This commit is contained in:
parent
01b99b3c14
commit
85c8ee8c97
|
@ -30,7 +30,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"strconv"
|
"strconv"
|
||||||
"revid"
|
"bitbucket.org/ausocean/av/revid"
|
||||||
|
|
||||||
"bitbucket.org/ausocean/IoT/pi/netsender"
|
"bitbucket.org/ausocean/IoT/pi/netsender"
|
||||||
)
|
)
|
||||||
|
|
|
@ -199,7 +199,7 @@ func (config *Config) Validate(r *revid) error {
|
||||||
return errors.New("Bad packetization option defined in config!")
|
return errors.New("Bad packetization option defined in config!")
|
||||||
}
|
}
|
||||||
|
|
||||||
if fpcAsInt, err := strconv.Aoit(config.FramesPerClip); fpc > 0 || err != nil {
|
if fpcAsInt, err := strconv.Atoi(config.FramesPerClip); fpcAsInt > 0 || err != nil {
|
||||||
return errors.New("Bad frames per clip in config!")
|
return errors.New("Bad frames per clip in config!")
|
||||||
} else {
|
} else {
|
||||||
if fpcAsInt == 0 {
|
if fpcAsInt == 0 {
|
||||||
|
|
Loading…
Reference in New Issue