diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -6,6 +6,7 @@ import ( "fmt" "os" "path/filepath" + "time" "go.wit.com/lib/fhelp" "go.wit.com/lib/gadgets" @@ -125,6 +126,17 @@ func main() { me.Enable() me.release.box.Enable() + if argv.AutoRun { + go startHTTP() + log.Info("Attempt to auto-run here. sleep 5") + time.Sleep(5 * time.Second) + + buttonDisable() + doReleaseAll() + buttonEnable() + for { + } + } // start the http server for polling status startHTTP() } |
