From 85c8ee8c974fa0035c6615c6df2f1d6a9398408e Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Thu, 19 Apr 2018 08:05:37 +0000 Subject: [PATCH] fixing some syntax errors --- RevidCLI.go | 2 +- revid/Config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RevidCLI.go b/RevidCLI.go index 6fbc1afc..a3dbba4c 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -30,7 +30,7 @@ package main import ( "flag" "strconv" - "revid" + "bitbucket.org/ausocean/av/revid" "bitbucket.org/ausocean/IoT/pi/netsender" ) diff --git a/revid/Config.go b/revid/Config.go index 1f88f88b..7a1fd859 100644 --- a/revid/Config.go +++ b/revid/Config.go @@ -199,7 +199,7 @@ func (config *Config) Validate(r *revid) error { 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!") } else { if fpcAsInt == 0 {