mirror of https://bitbucket.org/ausocean/av.git
Moving RevidCLI.go
This commit is contained in:
parent
0381a5dda0
commit
01b99b3c14
|
@ -30,6 +30,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"revid"
|
||||||
|
|
||||||
"bitbucket.org/ausocean/IoT/pi/netsender"
|
"bitbucket.org/ausocean/IoT/pi/netsender"
|
||||||
)
|
)
|
||||||
|
@ -70,8 +71,8 @@ var (
|
||||||
configReceived bool = true
|
configReceived bool = true
|
||||||
varSum int = 0
|
varSum int = 0
|
||||||
vars = make(map[string]string)
|
vars = make(map[string]string)
|
||||||
revid Revid
|
revid revid.Revid
|
||||||
config = Config{}
|
config revid.Config
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -384,7 +385,7 @@ func revidReportActions(pin int) (int, error) {
|
||||||
|
|
||||||
func createRevidInstance(){
|
func createRevidInstance(){
|
||||||
// Try to create the revid instance with the given config
|
// Try to create the revid instance with the given config
|
||||||
for revid, err := NewRevid(config); err != nil; {
|
for revid, err := revid.NewRevid(config); err != nil; {
|
||||||
// If the config does have a logger, use it to output error, otherwise
|
// If the config does have a logger, use it to output error, otherwise
|
||||||
// just output to std output
|
// just output to std output
|
||||||
if config.Logger != nil {
|
if config.Logger != nil {
|
Loading…
Reference in New Issue